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

    Class ActivationTrack

    Track that can be used to control the active state of a GameObject.

    Inheritance
    System.Object
    TrackAsset
    ActivationTrack
    Inherited Members
    TrackAsset.m_Clips
    TrackAsset.start
    TrackAsset.end
    TrackAsset.duration
    TrackAsset.muted
    TrackAsset.mutedInHierarchy
    TrackAsset.timelineAsset
    TrackAsset.parent
    TrackAsset.GetClips()
    TrackAsset.isEmpty
    TrackAsset.hasClips
    TrackAsset.hasCurves
    TrackAsset.isSubTrack
    TrackAsset.outputs
    TrackAsset.GetChildTracks()
    TrackAsset.curves
    TrackAsset.locked
    TrackAsset.lockedInHierarchy
    TrackAsset.supportsNotifications
    TrackAsset.CreateCurves(String)
    TrackAsset.CreatePlayable(PlayableGraph, GameObject)
    TrackAsset.CreateDefaultClip()
    TrackAsset.CreateClip<T>()
    TrackAsset.CreateMarker(Type, Double)
    TrackAsset.CreateMarker<T>(Double)
    TrackAsset.DeleteMarker(IMarker)
    TrackAsset.GetMarkers()
    TrackAsset.GetMarkerCount()
    TrackAsset.GetMarker(Int32)
    TrackAsset.CalculateItemsHash()
    TrackAsset.CreatePlayable(PlayableGraph, GameObject, TimelineClip)
    TrackAsset.GetAnimationClipHash(AnimationClip)
    TrackAsset.OnBeforeTrackSerialize()
    TrackAsset.OnAfterTrackDeserialize()
    Namespace: UnityEngine.Timeline
    Syntax
    [Serializable]
    [TrackClipType(typeof(ActivationPlayableAsset))]
    [TrackBindingType(typeof(GameObject))]
    public class ActivationTrack : TrackAsset, IPropertyPreview, ICurvesOwner, PlayableAsset

    Properties

    postPlaybackState

    Specifies what state to leave the GameObject in after the Timeline has finished playing.

    Declaration
    public ActivationTrack.PostPlaybackState postPlaybackState { get; set; }
    Property Value
    Type Description
    ActivationTrack.PostPlaybackState

    Methods

    CreateTrackMixer(PlayableGraph, GameObject, Int32)

    Creates a mixer used to blend playables generated by clips on the track.

    Declaration
    public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
    Parameters
    Type Name Description
    PlayableGraph graph

    The graph to inject playables into

    GameObject go

    The GameObject that requested the graph.

    System.Int32 inputCount

    The number of playables from clips that will be inputs to the returned mixer

    Returns
    Type Description
    Playable

    A handle to the [[Playable]] representing the mixer.

    Overrides
    TrackAsset.CreateTrackMixer(PlayableGraph, GameObject, Int32)
    Remarks

    Override this method to provide a custom playable for mixing clips on a graph.

    GatherProperties(PlayableDirector, IPropertyCollector)

    Called by the Timeline Editor to gather properties requiring preview.

    Declaration
    public override void GatherProperties(PlayableDirector director, IPropertyCollector driver)
    Parameters
    Type Name Description
    PlayableDirector director

    The PlayableDirector invoking the preview

    IPropertyCollector driver

    PropertyCollector used to gather previewable properties

    Overrides
    TrackAsset.GatherProperties(PlayableDirector, IPropertyCollector)

    OnCreateClip(TimelineClip)

    Called when a clip is created on a track.

    Declaration
    protected override void OnCreateClip(TimelineClip clip)
    Parameters
    Type Name Description
    TimelineClip clip

    The timeline clip added to this track

    Overrides
    TrackAsset.OnCreateClip(TimelineClip)
    Remarks

    Use this method to set default values on a timeline clip, or it's PlayableAsset.

    Extension Methods

    TrackAssetExtensions.GetGroup(TrackAsset)
    TrackAssetExtensions.SetGroup(TrackAsset, GroupTrack)
    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