mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-24 01:12:41 +08:00
Add RuntimeProvider method for setting Selectable.colors
This commit is contained in:
@ -130,12 +130,12 @@ namespace UnityExplorer.UI.Inspectors
|
||||
public void OnSetInspectorTab(InspectorBase inspector)
|
||||
{
|
||||
Color activeColor = new Color(0, 0.25f, 0, 1);
|
||||
inspector.m_tabButton.colors = RuntimeProvider.Instance.SetColorBlock(inspector.m_tabButton.colors, activeColor, activeColor);
|
||||
RuntimeProvider.Instance.SetColorBlock(inspector.m_tabButton, activeColor, activeColor);
|
||||
}
|
||||
|
||||
public void OnUnsetInspectorTab()
|
||||
{
|
||||
m_activeInspector.m_tabButton.colors = RuntimeProvider.Instance.SetColorBlock(m_activeInspector.m_tabButton.colors,
|
||||
RuntimeProvider.Instance.SetColorBlock(m_activeInspector.m_tabButton,
|
||||
new Color(0.2f, 0.2f, 0.2f, 1), new Color(0.1f, 0.3f, 0.1f, 1));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user