mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Fix wide property field labels.
This commit is contained in:
parent
d98ea1c45e
commit
d465e1a5b1
@ -1,4 +1,4 @@
|
||||
/******************************************************************************
|
||||
/******************************************************************************
|
||||
* Spine Runtimes Software License
|
||||
* Version 2.3
|
||||
*
|
||||
@ -46,7 +46,7 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
public static void PropertyFieldWideLabel (SerializedProperty property, GUIContent label = null, float minimumLabelWidth = 150) {
|
||||
using (new EditorGUILayout.HorizontalScope()) {
|
||||
GUILayout.Label(label ?? new GUIContent(property.name, property.tooltip), GUILayout.MinWidth(minimumLabelWidth));
|
||||
GUILayout.Label(label ?? new GUIContent(property.displayName, property.tooltip), GUILayout.MinWidth(minimumLabelWidth));
|
||||
//GUILayout.FlexibleSpace();
|
||||
EditorGUILayout.PropertyField(property, GUIContent.none, true, GUILayout.MinWidth(100));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user