mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 09:46:03 +08:00
Moved default EditorGUIUtility.labelWidth so that it can be overwritten in OnBodyGUI
This commit is contained in:
parent
4b073648c9
commit
085906efd2
@ -51,7 +51,6 @@ namespace XNodeEditor {
|
|||||||
// Iterate through serialized properties and draw them like the Inspector (But with ports)
|
// Iterate through serialized properties and draw them like the Inspector (But with ports)
|
||||||
SerializedProperty iterator = serializedObject.GetIterator();
|
SerializedProperty iterator = serializedObject.GetIterator();
|
||||||
bool enterChildren = true;
|
bool enterChildren = true;
|
||||||
EditorGUIUtility.labelWidth = 84;
|
|
||||||
while (iterator.NextVisible(enterChildren)) {
|
while (iterator.NextVisible(enterChildren)) {
|
||||||
enterChildren = false;
|
enterChildren = false;
|
||||||
if (excludes.Contains(iterator.name)) continue;
|
if (excludes.Contains(iterator.name)) continue;
|
||||||
|
|||||||
@ -305,6 +305,9 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
NodeEditor.portPositions.Clear();
|
NodeEditor.portPositions.Clear();
|
||||||
|
|
||||||
|
// Set default label width. This is potentially overridden in OnBodyGUI
|
||||||
|
EditorGUIUtility.labelWidth = 84;
|
||||||
|
|
||||||
//Get node position
|
//Get node position
|
||||||
Vector2 nodePos = GridToWindowPositionNoClipped(node.position);
|
Vector2 nodePos = GridToWindowPositionNoClipped(node.position);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user