Class Marker | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Marker

    Use Marker as a base class when creating a custom marker.

    Inheritance
    System.Object
    Marker
    SignalEmitter
    Namespace: UnityEngine.Timeline
    Syntax
    public abstract class Marker : ScriptableObject, IMarker
    Remarks

    A marker is a point in time.

    Properties

    parent

    The track that contains the marker.

    Declaration
    public TrackAsset parent { get; }
    Property Value
    Type Description
    TrackAsset
    Implements
    IMarker.parent

    time

    The time set for the marker, in seconds.

    Declaration
    public double time { get; set; }
    Property Value
    Type Description
    System.Double
    Implements
    IMarker.time
    Remarks

    The marker time cannot be negative.

    Methods

    OnInitialize(TrackAsset)

    Override this method to receive a callback when the marker is initialized.

    Declaration
    public virtual void OnInitialize(TrackAsset aPent)
    Parameters
    Type Name Description
    TrackAsset aPent

    Explicit Interface Implementations

    IMarker.Initialize(TrackAsset)

    Declaration
    void IMarker.Initialize(TrackAsset parentTrack)
    Parameters
    Type Name Description
    TrackAsset parentTrack
    Implements
    IMarker.Initialize(TrackAsset)
    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