IMGUI Editor Label 改变颜色
分享一个很神奇的颜色

一开始这么写,以为不行的,
cs
private void OnGUI()(){
GUILayout.Label("<color=red>name:</color>ffdasilufoi");
//。。。。
}

结果这么写又好了,
cs
private GUIStyle m_tempFontStyle = new GUIStyle();
void OnEnable(){
m_tempFontStyle.normal.textColor = Color.yellow;
m_tempFontStyle.fontSize = 20;
}
cs
private void OnGUI()(){
GUILayout.Label("<color=red>name:</color>ffdasilufoi",m_tempFontStyle);
//。。。。
}
参考
这么写的出处,也是来自同网站的小哥:
EditorGUILayout改变Label的颜色_guilayout.label 设置字体颜色-CSDN博客
补充
cs
void OnDetailInfoGUI(){
GUILayout.Label("<color=red>name:</color>ffdasilufoi",m_tempFontStyle);
GUILayout.Label("<color=#000000>size:</color>???",m_tempFontStyle);
GUILayout.Label("<color=#0000ff>vertex:</color>11m",m_tempFontStyle);
GUILayout.Label("triangles",m_tempFontStyle);
GUILayout.Label("mat??",m_tempFontStyle);
GUILayout.Label("Image;",m_tempFontStyle);
}

奇怪的是???
#ff00ff 红+蓝居然是紫色?
