An AIMEnvironment component serves as container holding GameObject instances which belong to the movement AI world, and thus, can be perceived by (multiple) agents.
Every AIMEnvironment can be the input of a derived AIMPerceiver<T> component which extracts all the data necessary for the AI system. You can use the inbuilt Label to easily identify an AIMEnvironment within the AI components of an agent. In addition, an environment can be marked Static to increase the AI performance for non-dynamic parts of a scene.
Public Fields | |
string | Label |
Identifies this environment within the AI components of an agent. More... | |
bool | Static |
Determines if the contained GameObjects should be considered static by derived AIMPerceiver<T> components. More... | |
List< string > | Layers = new List<string>() |
Every GameObject having one of the specified layers is belonging to the world which might be visible to (multiple) agents. More... | |
List< GameObject > | GameObjects = new List<GameObject>() |
Every instance within this list belongs to the world which might be visible to (multiple) agents. More... | |
List< GameObject > | LayerGameObjects = new List<GameObject>() |
Contains all objects belonging to the specified Layers. More... | |
Public Methods | |
void | UpdateLayerGameObjects () |
Collects all objects belonging to the specified Layers. More... | |