Class SubDirectorClip | DOTS Timeline | 0.4.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class SubDirectorClip

    A clip representing a nested timeline using another playable director

    Inheritance
    Object
    DOTSClip
    SubDirectorClip
    Inherited Members
    DOTSClip.Clip
    DOTSClip.AnimatedFields
    DOTSClip.OnEnable()
    DOTSClip.OnDisable()
    DOTSClip.Convert(Entity, ConversionContext)
    DOTSClip.OnCurvesModified(Entity, EntityManager)
    DOTSClip.ConvertCurves(AnimationClip)
    DOTSClip.GetAnimationBlob<T>(String)
    DOTSClip.GetAnimationBlob<T>(String, Func<AnimationCurve, AnimationCurve>)
    DOTSClip.SetCurvesDirty()
    DOTSClip.CheckAndClearCurvesDirtyFlag()
    DOTSClip.GetClipWeightCurve(BlobAssetReference<AnimationCurveBlob>)
    Namespace: Unity.Timeline.ECS
    Syntax
    [Serializable]
    public class SubDirectorClip : DOTSClip, ITimelineClipAsset, IPropertyPreview, IDeclareNestedPlayableDirector

    Fields

    DefaultClipDuration

    The default duration of the timeline. This is set in the editor based on the length of the timeline assigned

    Declaration
    public double DefaultClipDuration
    Field Value
    Type Description
    Double

    subDirector

    The sub timeline as a playable director

    Declaration
    public ExposedReference<PlayableDirector> subDirector
    Field Value
    Type Description
    ExposedReference<PlayableDirector>

    Take

    Optional reference to a 'take' in the nested timeline

    Declaration
    public EditTrack Take
    Field Value
    Type Description
    EditTrack

    Properties

    clipCaps

    Declaration
    public ClipCaps clipCaps { get; }
    Property Value
    Type Description
    ClipCaps

    duration

    This is the default duration of the clip used by the UI

    Declaration
    public override double duration { get; }
    Property Value
    Type Description
    Double

    Methods

    CreateClipEntity(ConversionContext)

    Creates an entity from this clip, using the context object provided. Override this method to change the default clip create method, or return Entity.Null where a conversion is not required

    Declaration
    public override Entity CreateClipEntity(ConversionContext context)
    Parameters
    Type Name Description
    ConversionContext context
    Returns
    Type Description
    Entity
    Overrides
    DOTSClip.CreateClipEntity(ConversionContext)
    Remarks

    Converts the sub director timeline

    CreatePlayable(PlayableGraph, GameObject)

    Overrides the playable creation

    Declaration
    public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
    Parameters
    Type Name Description
    PlayableGraph graph
    GameObject go
    Returns
    Type Description
    Playable
    Overrides
    DOTSClip.CreatePlayable(PlayableGraph, GameObject)
    Remarks

    Needed to make the sub director in the window contain the correct time

    DeclareReferencedPrefabs(ConversionContext, List<GameObject>)

    Propagate prefab calls to the Sub-Timeline

    Declaration
    public override void DeclareReferencedPrefabs(ConversionContext context, List<GameObject> referencedPrefabs)
    Parameters
    Type Name Description
    ConversionContext context
    List<GameObject> referencedPrefabs
    Overrides
    DOTSClip.DeclareReferencedPrefabs(ConversionContext, List<GameObject>)

    GatherProperties(PlayableDirector, IPropertyCollector)

    Propagate any gather calls on to the Sub-Timeline

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

    GetNestedDirectors(IExposedPropertyTable, List<PlayableDirector>)

    Gather nested playable directors

    Declaration
    public void GetNestedDirectors(IExposedPropertyTable propertyTable, List<PlayableDirector> nestedDirectors)
    Parameters
    Type Name Description
    IExposedPropertyTable propertyTable
    List<PlayableDirector> nestedDirectors
    Implements
    IDeclareNestedPlayableDirector.GetNestedDirectors(IExposedPropertyTable, List<PlayableDirector>)
    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