FYFY 2.3
Loading...
Searching...
No Matches
FYFY.PropertyMatcher Class Referenceabstract

Base class every matcher working on Unity property derives from. More...

Inheritance diagram for FYFY.PropertyMatcher:
FYFY.Matcher FYFY.AllOfProperties FYFY.AnyOfProperties FYFY.NoneOfProperties

Public Types

enum  PROPERTY { ACTIVE_SELF , ACTIVE_IN_HIERARCHY , HAS_PARENT , HAS_CHILD }
 List of properties of GameObject which can be used by the PropertyMatcher. More...
 

Protected Member Functions

bool hasProperty (UnityEngine.GameObject gameObject, PROPERTY property)
 Checks if gameobject has a certain property.
 

Protected Attributes

readonly PROPERTY[] _properties
 Targets used to match.
 

Additional Inherited Members

- Package Functions inherited from FYFY.Matcher
- Package Attributes inherited from FYFY.Matcher
- Properties inherited from FYFY.Matcher
string Descriptor [get]
 Gets the string description of this FYFY.Matcher.
 

Detailed Description

Base class every matcher working on Unity property derives from.

Matcher can filter on parentality and activation.

Member Enumeration Documentation

◆ PROPERTY

List of properties of GameObject which can be used by the PropertyMatcher.

Enumerator
ACTIVE_SELF 

The GameObject has the variables activeSelf true.

ACTIVE_IN_HIERARCHY 

The GameObject has the variables activeInHierarchy true.

HAS_PARENT 

The GameObject has one direct parent.

HAS_CHILD 

The GameObject has at least one direct child.


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