MultiPropertyAttribute.cs 647 B

1234567891011121314151617181920212223242526272829
  1. using UnityEngine;
  2. #if UNITY_EDITOR
  3. using UnityEditor;
  4. #endif
  5. namespace UnityUIPlayables
  6. {
  7. internal abstract class MultiPropertyAttribute : PropertyAttribute
  8. {
  9. public MultiPropertyAttribute[] Attributes;
  10. public IAttributePropertyDrawer[] PropertyDrawers;
  11. #if UNITY_EDITOR
  12. public virtual void OnPreGUI(Rect position, SerializedProperty property)
  13. {
  14. }
  15. public virtual void OnPostGUI(Rect position, SerializedProperty property, bool changed)
  16. {
  17. }
  18. public virtual bool IsVisible(SerializedProperty property)
  19. {
  20. return true;
  21. }
  22. #endif
  23. }
  24. }