mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
display color field
This commit is contained in:
parent
0a3d2a53dc
commit
b27bcac9a3
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,14 @@ namespace SanAndreasUnity.Editor
|
|||
else
|
||||
EditorGUILayout.EnumPopup(labelText, value as System.Enum);
|
||||
}
|
||||
else if (type == typeof(Color))
|
||||
{
|
||||
EditorGUILayout.ColorField(labelText, (Color) value);
|
||||
}
|
||||
else if (type == typeof(Color32))
|
||||
{
|
||||
EditorGUILayout.ColorField(labelText, (Color32) value);
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorGUILayout.LabelField($"{labelText} {value}");
|
||||
|
|
Loading…
Reference in a new issue