mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
set alpha shortcuts
This commit is contained in:
parent
fe5142dbdc
commit
964ba7e3df
@ -9,5 +9,10 @@ namespace DCFApixels.DebugXCore.Internal
|
|||||||
self.a *= v;
|
self.a *= v;
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
public static Color ToColor(ref this (Color color, float alpha) self)
|
||||||
|
{
|
||||||
|
self.color.a *= self.alpha;
|
||||||
|
return self.color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user