docs.unity.cn
    Show / Hide Table of Contents

    Class CustomTimelineEditorAttribute

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

    Inheritance
    Object
    CustomTimelineEditorAttribute
    Namespace: UnityEditor.Timeline
    Syntax
    public sealed class CustomTimelineEditorAttribute : 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(MyCustomClip))]
        class MyCustomClipEditor : ClipEditor {}

    Constructors

    CustomTimelineEditorAttribute(Type)

    Constructor.

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

    The type that that this editor applies to.

    Properties

    classToEdit

    The type that that this editor applies to.

    Declaration
    public Type classToEdit { get; }
    Property Value
    Type Description
    Type
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 21, 2021