Class SpawnWithTimelineClip
Spawn clip that allows the user to spawn a prefab and attach a nested timeline to it.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
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
duration
The default duration of the clip
Declaration
public override double duration { get; }
Property Value
Type | Description |
---|---|
Double |
Overrides
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
DeclareReferencedPrefabs(ConversionContext, List<GameObject>)
Declaration
public override void DeclareReferencedPrefabs(ConversionContext context, List<GameObject> referencedPrefabs)
Parameters
Type | Name | Description |
---|---|---|
ConversionContext | context | |
List<GameObject> | referencedPrefabs |
Overrides
OnTransformUpdate(Entity, EntityManager)
Declaration
public override void OnTransformUpdate(Entity entity, EntityManager manager)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
EntityManager | manager |