Skip to content

FFindObjectStrategy

Namespace: SideXP.Core

public enum FFindObjectStrategy

Defines how a reference to an object should be queried.

Remarks

This is used by ObjectUtility and RuntimeObjectUtility.

Fields

None

None = 0

Self

Self = 1

Find the reference in this GameObject.

Parent

Parent = 2

Find the reference in the direct parent of this GameObject.

Children

Children = 4

Find the reference in the direct children of this GameObject.

Scene

Scene = 8

Find the reference in the scene.

Recursive

Recursive = 16

If this option is enabled with Parent, the reference will be queried from the direct parent to the top-level one. if this option is enabled with Children, the reference will be queried recursively among this GameObject's children.

Anywhere

Anywhere = DirectHierarchy | Scene

WholeHierarchy

WholeHierarchy = DirectHierarchy | Recursive

DirectHierarchy

DirectHierarchy = Parent | SelfOrChildren

SelfOrParent

SelfOrParent = Self | Parent

SelfOrChildren

SelfOrChildren = Self | Children