mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-17 17:34:35 +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;
|
||||
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