mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-23 17:02:36 +08:00
Revert colorblock changes
This commit is contained in:
@ -64,7 +64,14 @@ namespace UnityExplorer.UI
|
||||
public static void SetColorBlockValues(ref this ColorBlock colorBlock, Color? normal = null, Color? highlighted = null,
|
||||
Color? pressed = null)
|
||||
{
|
||||
RuntimeProvider.Instance.SetColorBlockColors(ref colorBlock, normal, highlighted, pressed);
|
||||
if (normal != null)
|
||||
colorBlock.normalColor = (Color)normal;
|
||||
|
||||
if (highlighted != null)
|
||||
colorBlock.highlightedColor = (Color)highlighted;
|
||||
|
||||
if (pressed != null)
|
||||
colorBlock.pressedColor = (Color)pressed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user