Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Checks is the detecting objects belong to the same root as the filter.
Public Member Functions | |
void | OnHierarchyChanged () |
Handler that must be called in case if filter was moved in hierarchy. | |
bool | CheckCollision (FilteredSensor invocker, GameObject obj) |
Checking object from collision with filter settings. More... | |
Protected Member Functions | |
override bool | FilterLogic (FilteredSensor __, GameObject obj) |
Check is the detected object belongs to the same root. More... | |
virtual void | OnModified () |
Handler that should be called after any settings modification. | |
Properties | |
Transform | Root [get] |
bool | IsNotChild [get, set] |
If true then blocks the objects in the same hierarchy that are the child of the filter object. | |
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 |
Check is the detected object belongs to the same root.
__ | 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. |