예제 #1
0
        public override void DrawCommandGUI()
        {
            Label t = target as Label;

            FungusScript fungusScript = t.GetFungusScript();

            if (fungusScript == null)
            {
                return;
            }

            serializedObject.Update();

            EditorGUILayout.PropertyField(keyProp);
            keyProp.stringValue = fungusScript.GetUniqueLabelKey(keyProp.stringValue, t);

            serializedObject.ApplyModifiedProperties();
        }