public void ToGUI() { EditorGUILayout.BeginHorizontal(); if (IsValid) { Gaze_AbstractCondition.RenderSatisfiedLabel("Custom Condition:"); Gaze_AbstractCondition.RenderSatisfiedLabel("Valid"); } else { Gaze_AbstractCondition.RenderNonSatisfiedLabel("Custom Condition:"); Gaze_AbstractCondition.RenderNonSatisfiedLabel("Not Valid"); } EditorGUILayout.EndHorizontal(); }
public override void ToEditorGUI() { #if UNITY_EDITOR EditorGUILayout.BeginHorizontal(); if (IsValid) { Gaze_AbstractCondition.RenderSatisfiedLabel("ARKit Playspace Condition:"); Gaze_AbstractCondition.RenderSatisfiedLabel("Valid"); } else { Gaze_AbstractCondition.RenderNonSatisfiedLabel("ARKit Playspace Condition:"); Gaze_AbstractCondition.RenderNonSatisfiedLabel("Not Valid"); } EditorGUILayout.EndHorizontal(); #endif }