Skip to main content

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​

template​

[HideInInspector]
public AICommandBehaviour template

Field Value​

AICommandBehaviour

Properties​

CommandType​

Return the type of AI command this clip will trigger.

public AICommand.CommandType CommandType { get; }

Property Value​

AICommand.CommandType

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​

NameTypeDescription
graphPlayableGraphThe PlayableDirector's playableGraph nto inject playables into.
ownerGameObjectThe GameObject which own the PlayableDirector and initiated the build.

Returns​

Playable — The configured AICommandBehaviour playable injected into the graph.