123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- using System;
- using UnityEngine;
- namespace UnityEngine.Timeline
- {
-
-
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
- public class TrackClipTypeAttribute : Attribute
- {
-
-
-
- public readonly Type inspectedType;
-
-
-
- public readonly bool allowAutoCreate;
-
-
-
- public TrackClipTypeAttribute(Type clipClass)
- {
- inspectedType = clipClass;
- allowAutoCreate = true;
- }
-
-
-
-
-
- public TrackClipTypeAttribute(Type clipClass, bool allowAutoCreate)
- {
- inspectedType = clipClass;
- allowAutoCreate = false;
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Class)]
- public class NotKeyableAttribute : Attribute
- {
- }
-
-
-
- [Flags]
- public enum TrackBindingFlags
- {
-
-
-
- None = 0,
-
-
-
- AllowCreateComponent = 1,
-
-
-
- All = AllowCreateComponent
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [AttributeUsage(AttributeTargets.Class)]
- public class TrackBindingTypeAttribute : Attribute
- {
-
-
-
- public readonly Type type;
-
-
-
- public readonly TrackBindingFlags flags;
- public TrackBindingTypeAttribute(Type type)
- {
- this.type = type;
- this.flags = TrackBindingFlags.All;
- }
- public TrackBindingTypeAttribute(Type type, TrackBindingFlags flags)
- {
- this.type = type;
- this.flags = flags;
- }
- }
-
-
- [AttributeUsage(AttributeTargets.Class, Inherited = false)]
- class SupportsChildTracksAttribute : Attribute
- {
- public readonly Type childType;
- public readonly int levels;
- public SupportsChildTracksAttribute(Type childType = null, int levels = Int32.MaxValue)
- {
- this.childType = childType;
- this.levels = levels;
- }
- }
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
- class IgnoreOnPlayableTrackAttribute : System.Attribute {}
-
- class TimeFieldAttribute : PropertyAttribute
- {
- public enum UseEditMode
- {
- None,
- ApplyEditMode
- }
- public UseEditMode useEditMode { get; }
- public TimeFieldAttribute(UseEditMode useEditMode = UseEditMode.ApplyEditMode)
- {
- this.useEditMode = useEditMode;
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Class, Inherited = false)]
- public class HideInMenuAttribute : Attribute {}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [AttributeUsage(AttributeTargets.Class)]
- public class CustomStyleAttribute : Attribute
- {
-
-
-
- public readonly string ussStyle;
-
- public CustomStyleAttribute(string ussStyle)
- {
- this.ussStyle = ussStyle;
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Class)]
- internal class MenuCategoryAttribute : Attribute
- {
-
-
-
- public readonly string category;
- public MenuCategoryAttribute(string category)
- {
- this.category = category ?? string.Empty;
- }
- }
- }
|