mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 18:14: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;
|
Color defaultColor = GUI.color;
|
||||||
if (_labelStyle == null || _labelDummy == null)
|
if (_labelStyle == null || _labelDummy == null)
|
||||||
{
|
{
|
||||||
_labelStyle = GUI.skin.label;
|
_labelStyle = new GUIStyle(GUI.skin.label) {
|
||||||
_labelStyle.richText = false;
|
richText = false
|
||||||
|
};
|
||||||
_labelDummy = new GUIContent();
|
_labelDummy = new GUIContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user