private void HandleNewAttribute(ToolboxAttribute attribute) { switch (attribute) { case ToolboxListPropertyAttribute a: TryAssignListPropertyAttribute(a); break; case ToolboxSelfPropertyAttribute a: TryAssignSelfPropertyAttribute(a); break; case ToolboxDecoratorAttribute a: TryAssignDecoratorAttribute(a); break; case ToolboxConditionAttribute a: TryAssignConditionAttribute(a); break; case ToolboxArchetypeAttribute a: var composition = a.Process(); foreach (var newAttribute in composition) { HandleNewAttribute(newAttribute); } break; } }
public override sealed void OnGuiEnd(ToolboxAttribute attribute) { if (attribute is T targetAttribute) { OnGuiEnd(targetAttribute); return; } else { UnityEngine.Debug.LogError("Target attribute not found."); } base.OnGuiEnd(); }
public override sealed void OnGui(SerializedProperty property, ToolboxAttribute attribute) { if (attribute is T targetAttribute) { OnGui(property, targetAttribute); return; } else { Debug.LogError("Target attribute not found."); } base.OnGui(property, attribute); }
public override sealed void OnGui(SerializedProperty property, GUIContent label, ToolboxAttribute attribute) { OnGui(property, label, attribute as T); }
public virtual PropertyCondition OnGuiValidate(SerializedProperty property, ToolboxAttribute attribute) { return(OnGuiValidate(property)); }
public override sealed void OnGuiClose(ToolboxAttribute attribute) { OnGuiClose(attribute as T); }
public override sealed void OnGuiBegin(ToolboxAttribute attribute) { OnGuiBegin(attribute as T); }
public override sealed void OnGuiEnd(ToolboxAttribute attribute) { OnGuiEnd(attribute as T); }
public virtual void OnGuiEnd(ToolboxAttribute attribute) { OnGuiEnd(); }
public override sealed PropertyCondition OnGuiValidate(SerializedProperty property, ToolboxAttribute attribute) { if (attribute is T targetAttribute) { return(OnGuiValidate(property, targetAttribute)); } else { Debug.LogError("Target attribute not found."); } return(base.OnGuiValidate(property, attribute)); }
public sealed override PropertyCondition OnGuiValidate(SerializedProperty property, ToolboxAttribute attribute) { return(OnGuiValidate(property, attribute as T)); }
public abstract void OnGuiClose(ToolboxAttribute attribute);
public abstract void OnGuiBegin(ToolboxAttribute attribute);
public virtual void OnGui(SerializedProperty property, ToolboxAttribute attribute) { OnGui(property); }
public virtual void OnGuiBegin(ToolboxAttribute attribute) { OnGuiBegin(); }
public abstract PropertyCondition OnGuiValidate(SerializedProperty property, ToolboxAttribute attribute);
public abstract void OnGui(SerializedProperty property, GUIContent label, ToolboxAttribute attribute);
public abstract void OnGuiEnd(ToolboxAttribute attribute);