public override void OnEditorGUI(UEDS.Setting pSetting) { int val = (int)pSetting.GetValue(); pSetting.SetValue(EditorGUILayout.IntField( pSetting.mSettingName, val)); }
public override void OnEditorGUI(UEDS.Setting pSetting) { string val = (string)pSetting.GetValue(); pSetting.SetValue(EditorGUILayout.TextField( pSetting.mSettingName, val)); }
public virtual void PreEditorGUI(UEDS.Setting pSetting) { renderedDirty = pSetting.isDirty; if (renderedDirty) { GUILayout.BeginHorizontal("TE NodeBoxSelected"); } else { GUILayout.BeginHorizontal("TE NodeBox"); } }
public virtual void RenderDescription(UEDS.Setting pSetting) { if (!mShowDescription) { return; } GUILayout.BeginVertical(UEDSStyles.infoGroup); if (pSetting.Description != null) { EditorGUILayout.HelpBox(pSetting.Description, MessageType.Info); } GUILayout.Label("Property Name: " + pSetting.mSettingName, EditorStyles.whiteMiniLabel); GUILayout.Label("Property Type: " + pSetting.mType.ToString(), EditorStyles.whiteMiniLabel); GUILayout.Label("Property ValueType: " + pSetting.mValueType.ToString(), EditorStyles.whiteMiniLabel); GUILayout.Label("Property Default Value: " + pSetting.GetDefault(pSetting.mValueType).ToString(), EditorStyles.whiteMiniLabel); GUILayout.EndVertical(); }
public override void OnEditorGUI(UEDS.Setting pSetting) { pSetting.SetValue(EditorGUILayout.ColorField( pSetting.DisplayName, (UnityEngine.Color)pSetting.GetValue())); }
public override void OnEditorGUI(UEDS.Setting pSetting) { pSetting.SetValue(EditorGUILayout.FloatField( pSetting.mSettingName, (float)pSetting.GetValue())); }
public abstract void OnEditorGUI(UEDS.Setting pSetting);
public virtual void PostEditorGUI(UEDS.Setting pSetting) { GUILayout.EndHorizontal(); }