Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Filtering detecting objects along with the GameObject.tag property.
Public Member Functions | |
bool | CheckCollision (FilteredSensor invocker, GameObject obj) |
Checking object from collision with filter settings. More... | |
Protected Member Functions | |
override bool | FilterLogic (FilteredSensor __, GameObject obj) |
Returns true in case if FilteredTags not defined or equals to the obj.tag property. More... | |
virtual void | OnModified () |
Handler that should be called after any settings modification. | |
Properties | |
string[] | FilteredTags [get, set] |
Array of tags that passes validation process. More... | |
FilteredSensor | sensor [get] |
Reference to sensor component binded to the filter. More... | |
bool | Inverted [get, set] |
Returns inverted result if true. | |
Events | |
System.Action< ASensorFilter > | Modified |
Occurs when critical setting of the filter was modified. | |
|
inherited |
Checking object from collision with filter settings.
invocker | The source manager for the event. |
obj | Collided object. |
Result of filtering. True - passed False - rejected.
Result returns inverted in case if Inverted is true.
|
protectedvirtual |
Returns true in case if FilteredTags not defined or equals to the obj.tag
property.
__ | Discarded parameter. |
obj | Detected object. |
Implements Doloro.Sensors.ASensorFilter.
|
getset |
Array of tags that passes validation process.
Case sensitive. Null or whitespace will ignored.
|
getinherited |
Reference to sensor component binded to the filter.
Primary looks for first sensor at the same object. If not found then looking among parent sensors.
System.NullReferenceException | Sensor instance not found in hierarchy. |