docs.unity.cn
    Show / Hide Table of Contents

    Class PlayableTrack

    A PlayableTrack is a track whose clips are custom playables.

    Inheritance
    Object
    TrackAsset
    PlayableTrack
    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.CreateTrackMixer(PlayableGraph, GameObject, Int32)
    TrackAsset.CreatePlayable(PlayableGraph, GameObject)
    TrackAsset.CreateDefaultClip()
    TrackAsset.CreateClip<T>()
    TrackAsset.DeleteClip(TimelineClip)
    TrackAsset.CreateMarker(Type, Double)
    TrackAsset.CreateMarker<T>(Double)
    TrackAsset.DeleteMarker(IMarker)
    TrackAsset.GetMarkers()
    TrackAsset.GetMarkerCount()
    TrackAsset.GetMarker(Int32)
    TrackAsset.GatherProperties(PlayableDirector, IPropertyCollector)
    TrackAsset.CalculateItemsHash()
    TrackAsset.CreatePlayable(PlayableGraph, GameObject, TimelineClip)
    TrackAsset.CanCreateTrackMixer()
    TrackAsset.GetAnimationClipHash(AnimationClip)
    TrackAsset.OnBeforeTrackSerialize()
    TrackAsset.OnAfterTrackDeserialize()
    Namespace: UnityEngine.Timeline
    Syntax
    public class PlayableTrack : TrackAsset, IPropertyPreview, ICurvesOwner, PlayableAsset
    Remarks

    This is a track that can contain PlayableAssets that are found in the project and do not have their own specified track type.

    Methods

    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

    TrackExtensions.IsCollapsed(TrackAsset)
    TrackExtensions.SetCollapsed(TrackAsset, Boolean)
    TrackExtensions.IsVisibleInHierarchy(TrackAsset)
    TrackAssetExtensions.GetGroup(TrackAsset)
    TrackAssetExtensions.SetGroup(TrackAsset, GroupTrack)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 21, 2021