Class CustomTimelineEditorAttribute | Timeline | 1.2.18
docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomTimelineEditorAttribute

    Attribute that specifies a class as an editor for an extended Timeline type.

    Inheritance
    Object
    Attribute
    CustomTimelineEditorAttribute
    Namespace: UnityEditor.Timeline
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public sealed class CustomTimelineEditorAttribute : Attribute, _Attribute
    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.

    Examples

    [CustomTimelineEditor(typeof(LightControlClip))] class LightControlClipEditor : ClipEditor { }

    Constructors

    CustomTimelineEditorAttribute(Type)

    Constructor.

    Declaration
    public CustomTimelineEditorAttribute(Type type)
    Parameters
    Type Name Description
    Type type

    The type that that this editor applies to.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if type is null

    Properties

    classToEdit

    The type that that this editor applies to.

    Declaration
    public Type classToEdit { get; }
    Property Value
    Type Description
    Type
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023