Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Sensor filters

Table of Contents

About

The system allows to bond custom extra filters to extend basic rules.
Filters works as logic extension over the FilteredSensor component or derived alternatives. The sensor calls filters when unity trigger event occurs. In case the object passing entire filters it will be added to triggered objects collection.

Explore API: Doloro.Sensors.ASensorFilter

Read also:

How to use

To add a filter to the sensor and override selection logic it's enough to add ASensorFilter derived component over the game object with FilteredSensor component.

The filter automatically adds to a filtered sensor instance at runtime and integrates into internal calls logic.

Included filters

The package supplies you with collection of pre-implemented filters. The filters both integrates filtering by base objects properties and works as example to help you ramp up with custom filters development.

Filter Purpose
Hierarchy Root Sensor Filter Filters objects by hierarchy check.
Layer Sensor Filter Filters objects along with the GameObject.layer property.
Tag Sensor Filter Filters objects along with the GameObject.tag property.
Game Object Sensor Filter Filters the certain game object instance.

Explore API