Class ControlPlayableAsset
Playable Asset that generates playables for controlling time-related elements on a GameObject.
Inherited Members
Namespace: UnityEngine.Timeline
Assembly: solution.dll
Syntax
[Serializable]
public class ControlPlayableAsset : PlayableAsset, IPlayableAsset, IPropertyPreview, ITimelineClipAsset
Fields
Name | Description |
---|---|
active | Indicate whether GameObject activation is controlled |
particleRandomSeed | Random seed to supply particle systems that are set to use autoRandomSeed |
postPlayback | Indicates the active state of the GameObject when Timeline is stopped. |
prefabGameObject | Prefab object that will be instantiated. |
searchHierarchy | Indicates whether to search the entire hierarchy for controllable components. |
sourceGameObject | GameObject in the scene to control, or the parent of the instantiated prefab. |
updateDirector | Indicates whether playableDirectors are controlled. |
updateITimeControl | Indicates whether Monobehaviours implementing ITimeControl will be controlled. |
updateParticle | Indicates whether Particle Systems will be controlled. |
Properties
Name | Description |
---|---|
clipCaps | Returns the capabilities of TimelineClips that contain a ControlPlayableAsset |
duration | Returns the duration in seconds needed to play the underlying director or particle system exactly once. |
Methods
Name | Description |
---|---|
CreatePlayable(PlayableGraph, GameObject) | Creates the root of a Playable subgraph to control the contents of the game object. |
GatherProperties(PlayableDirector, IPropertyCollector) | Called by the Timeline Editor to gather properties requiring preview. |
OnEnable() | This function is called when the object is loaded. |