summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
commit3af4c218c0e70167db23a6303d2af30aff37d2fe (patch)
tree927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs
parentb6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff)
downloadProject-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs')
-rw-r--r--Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs
deleted file mode 100644
index 021a635..0000000
--- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/CustomTrackDrawerAttribute.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-
-namespace UnityEditor.Timeline
-{
- // Tells a custom [[TrackDrawer]] which [[TrackAsset]] it's a drawer for.
- sealed class CustomTrackDrawerAttribute : Attribute
- {
- public Type assetType;
- public CustomTrackDrawerAttribute(Type type)
- {
- assetType = type;
- }
- }
-
- /// <summary>
- /// Attribute that specifies a class as an editor for an extended Timeline type.
- /// </summary>
- /// <remarks>
- /// Use this attribute on a class that extends ClipEditor, TrackEditor, or MarkerEditor to specify either the PlayableAsset, Marker, or TrackAsset derived classes for associated customization.
- /// </remarks>
- /// <example>
- /// [CustomTimelineEditor(typeof(LightControlClip))]
- /// class LightControlClipEditor : ClipEditor
- /// {
- /// }
- /// </example>
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
- public sealed class CustomTimelineEditorAttribute : Attribute
- {
- /// <summary>
- /// The type that that this editor applies to.
- /// </summary>
- public Type classToEdit { get; private set; }
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <param name="type"> The type that that this editor applies to.</param>
- /// <exception cref="ArgumentNullException">Thrown if type is null</exception>
- public CustomTimelineEditorAttribute(Type type)
- {
- if (type == null)
- throw new System.ArgumentNullException(nameof(type));
- classToEdit = type;
- }
- }
-}