Class SpawnWithTimelineClip
Spawn clip that allows the user to spawn a prefab and attach a nested timeline to it.
Inheritance
SpawnWithTimelineClip
Syntax
public class SpawnWithTimelineClip : EntityClip, IEntityTransformProvider, ITimelineClipAsset, ICreateEntityClip
Fields
Prefab
Declaration
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
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
Overrides
DeclareReferencedPrefabs(ConversionContext, List<GameObject>)
Declaration
public override void DeclareReferencedPrefabs(ConversionContext context, List<GameObject> referencedPrefabs)
Parameters
Overrides
Declaration
public override void OnTransformUpdate(Entity entity, EntityManager manager)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
EntityManager |
manager |
|
Overrides