private void DrawVariableNameEnterButton(ICacheEntry field) { if (GUILayout.Button(field.Name(), _alignedButtonStyle, _inspectorNameWidth)) { var val = field.EnterValue(); if (val != null) { _nextToPush = new InstanceStackEntry(val, field.Name()); } } }
private void DrawVariableNameEnterButton(ICacheEntry field) { if (_alignedButtonStyle == null) { _alignedButtonStyle = new GUIStyle(GUI.skin.button) { alignment = TextAnchor.MiddleLeft, wordWrap = true }; } if (GUILayout.Button(field.Name(), _alignedButtonStyle, _inspectorNameWidth)) { var val = field.EnterValue(); if (val != null) { var entry = val as InspectorStackEntryBase ?? new InstanceStackEntry(val, field.Name(), field); Push(entry, IsContextClick()); } } }