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

    Class SpawnWithTimelineClip

    Spawn clip that allows the user to spawn a prefab and attach a nested timeline to it.

    Inheritance
    Object
    DOTSClip
    EntityClip
    SpawnWithTimelineClip
    Inherited Members
    EntityClip.Position
    EntityClip.Rotation
    EntityClip.Scale
    EntityClip.IEntityTransformProvider.EntityTranslation
    EntityClip.IEntityTransformProvider.EntityRotation
    EntityClip.IEntityTransformProvider.EntityScale
    DOTSClip.Clip
    DOTSClip.AnimatedFields
    DOTSClip.CreatePlayable(PlayableGraph, GameObject)
    DOTSClip.OnEnable()
    DOTSClip.OnDisable()
    DOTSClip.CreateClipEntity(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
    public class SpawnWithTimelineClip : EntityClip, IEntityTransformProvider, ITimelineClipAsset, ICreateEntityClip

    Fields

    Prefab

    The prefab to spawn

    Declaration
    public GameObject Prefab
    Field Value
    Type Description
    GameObject

    Timeline

    A timeline asset that is automatically bound to the spawned prefab

    Declaration
    public TimelineAsset Timeline
    Field Value
    Type Description
    TimelineAsset

    WrapMode

    How the timeline plays back

    Declaration
    public DirectorWrapMode WrapMode
    Field Value
    Type Description
    DirectorWrapMode

    Properties

    clipCaps

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

    duration

    The default duration of the clip

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

    Methods

    Convert(Entity, ConversionContext)

    Override this method to add addition components to the clipEntity provided

    Declaration
    public override void Convert(Entity clipEntity, ConversionContext context)
    Parameters
    Type Name Description
    Entity clipEntity
    ConversionContext context
    Overrides
    DOTSClip.Convert(Entity, ConversionContext)

    DeclareReferencedPrefabs(ConversionContext, List<GameObject>)

    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>)

    OnTransformUpdate(Entity, EntityManager)

    Declaration
    public override void OnTransformUpdate(Entity entity, EntityManager manager)
    Parameters
    Type Name Description
    Entity entity
    EntityManager manager
    Overrides
    EntityClip.OnTransformUpdate(Entity, EntityManager)
    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