Skip to main content

ActionComponentSet

A class in Root.Township, Alta.Intelligence.

A component whose children are ActionComponents; it builds the set of actions an AI agent can choose from.

Constructors​

MemberWhat it is
ActionComponentSet()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private ActionSet<Agent> actionSetCached action set built from the child ActionComponents on first GetActionSet call.

Methods​

MemberWhat it is
ActionSet<T> GetActionSet<T>()Builds an action set from the child action components. Its cache only works for the base Agent type, so it usually rebuilds each call.

Used in​

Members of other types that take, return or hold a ActionComponentSet: