When call NodeGUI->UpdateNodeRect outside OnGUI ,will throw "ArgumentException:You can only call GUI functions from inside OnGUI."
Issue #76
resolved
the point is GUI.skin.label.CalcSize not allow been called outside OnGUI.
float labelWidth = GUI.skin.label.CalcSize(new GUIContent(this.Name)).x;
please help ....
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
i use NodeGUIUtility.nodeSkin.FindStyle find the guistyle then use it ,then run