Polarith AI
1.8
TargetObjectiveAttribute Class Reference

Description

An attribute for int fields that represent an objective index.

If an AIMContext instance can be found, then a popup is shown. Otherwise, a simple int field is drawn. Using the NegativeIndex property allows to include a "None" option which equals to an index of -1. The character controllers, like the AIMSimpleController2D, are using this feature.

Inheritance diagram for TargetObjectiveAttribute:

Properties

bool NegativeIndex [get]
 If true, the drawn field has the option to use a negative index or "None" if an AIMContext instance can be found. More...
 

Public Methods

 TargetObjectiveAttribute (bool negativeIndex)
 The attribute constructor. More...
 
Imprint