Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Sensors.Filters.HierarchyRootSensorFilter Class Reference

Detailed Description

Checks is the detecting objects belong to the same root as the filter.

Inheritance diagram for Doloro.Sensors.Filters.HierarchyRootSensorFilter:
Collaboration diagram for Doloro.Sensors.Filters.HierarchyRootSensorFilter:

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< ASensorFilterModified
 Occurs when critical setting of the filter was modified.
 

Member Function Documentation

◆ CheckCollision()

bool Doloro.Sensors.ASensorFilter.CheckCollision ( FilteredSensor  invocker,
GameObject  obj 
)
inherited

Checking object from collision with filter settings.

Parameters
invockerThe source manager for the event.
objCollided object.
Returns

Result of filtering. True - passed False - rejected.

Result returns inverted in case if Inverted is true.

◆ FilterLogic()

override bool Doloro.Sensors.Filters.HierarchyRootSensorFilter.FilterLogic ( FilteredSensor  __,
GameObject  obj 
)
protectedvirtual

Check is the detected object belongs to the same root.

Parameters
__Discarded parameter.
objDetected object.
Returns
Result of filtering.

Implements Doloro.Sensors.ASensorFilter.

Property Documentation

◆ sensor

FilteredSensor Doloro.Sensors.ASensorFilter.sensor
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.

Exceptions
System.NullReferenceExceptionSensor instance not found in hierarchy.

The documentation for this class was generated from the following file: