Class SpawnWithTimelineClip | DOTS Timeline | 0.8.0-preview.1
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
    Object
    ScriptableObject
    PlayableAsset
    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()
    PlayableAsset.outputs
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.Timeline.ECS
    Syntax
    public class SpawnWithTimelineClip : EntityClip, IPlayableAsset, IEntityTransformProvider, ITimelineClipAsset, ICreateEntityClip

    Fields

    Prefab

    The prefab to spawn

    Declaration
    [Tooltip("The prefab to spawn")]
    public GameObject Prefab
    Field Value
    Type Description
    GameObject

    Timeline

    A timeline asset that is automatically bound to the spawned prefab

    Declaration
    [Tooltip("A timeline to attach that is automatically bound to the spawned prefab")]
    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
    Implements
    ITimelineClipAsset.clipCaps

    duration

    The default duration of the clip

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

    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