Class AICommandClip
A Timeline Clip clip that defind the custom AI command for the Timeline track to issue command.
[Serializable]
public class AICommandClip : PlayableAsset, ITimelineClipAsset
Inheritance
Implements
ITimelineClipAsset
Fields
Properties
CommandType
Return the type of AI command this clip will trigger.
public AICommand.CommandType CommandType { get; }
Property Value
clipCaps
This clip does not support any special capabilities.
public ClipCaps clipCaps { get; }
Property Value
ClipCaps
Methods
CreatePlayable(PlayableGraph, GameObject)
Creates the AICommandBehaviour instance and inject it into the PlayableDirector's PlayableGraph. Neccessary runtime data (type, position, target) is copy over to the injected AICommandBehaviour playable.
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
Parameters
| Name | Type | Description |
|---|---|---|
graph | PlayableGraph | The PlayableDirector's playableGraph nto inject playables into. |
owner | GameObject | The GameObject which own the PlayableDirector and initiated the build. |
Returns
Playable — The configured AICommandBehaviour playable injected into the graph.