Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Compares game objects and pass through the filter only if object the same.
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) |
Compare target with detected object. More... | |
virtual void | OnModified () |
Handler that should be called after any settings modification. | |
Properties | |
GameObject | target [get, set] |
Game object that will be used in filter as compare target to detected instance. | |
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 |
Compare target with detected object.
__ | Discarded parameter. |
obj | Detected object. |
Implements Doloro.Sensors.ASensorFilter.
|
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. |