Filters objects detected by the FilteredSensor along with the GameObject.layer property.
|
override bool | FilterLogic (FilteredSensor __, GameObject obj) |
| Passes object in case if its GameObject.layer defined at the More...
|
|
virtual void | OnModified () |
| Handler that should be called after any settings modification.
|
|
|
LayerMask | DetectionMask [get, set] |
| Mask of game object's layers that allowed to pass through the filter.
|
|
FilteredSensor | sensor [get] |
| Reference to sensor component binded to the filter. More...
|
|
bool | Inverted [get, set] |
| Returns inverted result if true.
|
|
|
System.Action< ASensorFilter > | Modified |
| Occurs when critical setting of the filter was modified.
|
|
◆ CheckCollision()
bool Doloro.Sensors.ASensorFilter.CheckCollision |
( |
FilteredSensor |
invocker, |
|
|
GameObject |
obj |
|
) |
| |
|
inherited |
Checking object from collision with filter settings.
- Parameters
-
invocker | The source manager for the event. |
obj | Collided object. |
- Returns
Result of filtering. True - passed False - rejected.
Result returns inverted in case if Inverted is true.
◆ FilterLogic()
override bool Doloro.Sensors.Filters.LayerSensorFilter.FilterLogic |
( |
FilteredSensor |
__, |
|
|
GameObject |
obj |
|
) |
| |
|
protectedvirtual |
Passes object in case if its GameObject.layer defined at the
- Parameters
-
__ | Discarded property. |
obj | Detected object. |
- Returns
- Result of filtering.
Implements Doloro.Sensors.ASensorFilter.
◆ sensor
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.
- Exceptions
-
System.NullReferenceException | Sensor instance not found in hierarchy. |
The documentation for this class was generated from the following file:
- D:/Work/GitHub/DGDK22/Assets/Tauri Interactive/Doloro-GDK/Doloro-Sensor/Runtime/Filters/LayerSensorFilter.cs