mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-19 02:24:36 +08:00
fix: avoid changing editor's GUI.skin by creating a new instance of GUIStyle.
This commit is contained in:
parent
2c74be99a9
commit
4bf61527a5
@ -91,8 +91,9 @@ namespace DCFApixels {
|
||||
Color defaultColor = GUI.color;
|
||||
if (_labelStyle == null || _labelDummy == null)
|
||||
{
|
||||
_labelStyle = GUI.skin.label;
|
||||
_labelStyle.richText = false;
|
||||
_labelStyle = new GUIStyle(GUI.skin.label) {
|
||||
richText = false
|
||||
};
|
||||
_labelDummy = new GUIContent();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user