Arbor 3: FSM & BT Graph Editor 3.7.0

Public Member Functions | Protected Attributes | Properties | List of all members
FlexibleSceneObjectBase Class Referenceabstract

Class to handle a flexible scene objects (GameObject, Component) type reference method there is more than one. More...

Inheritance diagram for FlexibleSceneObjectBase:

## Public Member Functions
abstract object | GetValueObject ()
| Return the value as object. More...
abstract Object | GetConstantObject ()
| Returns an Object of FlexibleSceneObjectType.Constant. More...
bool | SetHierarchyIfConstantNull (FlexibleHierarchyType hierarchyType=FlexibleHierarchyType.Self)
| Change to FlexibleSceneObjectType.Hierarchy if FlexibleSceneObjectType.Constant and the referencing object is null. More...

## Protected Attributes
FlexibleSceneObjectType | _Type = FlexibleSceneObjectType.Constant
| Specified type of value More...
FlexibleHierarchyType | _HierarchyType = FlexibleHierarchyType.Self
| Reference type of Hierarchy specified when Type is FlexibleSceneObjectType.Hierarchy. More...

## Properties
Object | ownerObject`[get, set]`
| Return the object that owns this instance More...
System.Reflection.FieldInfo | fieldInfo`[get, set]`
| Return the FieldInfo that owns this instance More...
NodeGraph | targetGraph`[get]`
| Returns the NodeGraph to be referenced in case of FlexibleSceneObjectType.Hierarchy. More...
GameObject | targetGameObject`[get]`
| Returns the GameObject to be referenced in case of FlexibleSceneObjectType.Hierarchy. More...
FlexibleSceneObjectType | type`[get, set]`
| It returns a type More...
FlexibleHierarchyType | hierarchyType`[get, set]`
| In the case of FlexibleSceneObjectType.Hierarchy, return FlexibleHierarchyType representing which object to reference More...

## Detailed Description

Class to handle a flexible scene objects (GameObject, Component) type reference method there is more than one.

Inherit and use it.

## Member Function Documentation

## ◆ GetConstantObject()

abstract Object GetConstantObject | ( |  | ) |
| pure virtual

Returns an Object of FlexibleSceneObjectType.Constant.

Returns
  Object value at Constant

Implemented in FlexibleComponent< T >, FlexibleComponent< T >, and FlexibleGameObject.

## ◆ GetValueObject()

abstract object GetValueObject | ( |  | ) |
| pure virtual

Return the value as object.

Returns
  The value object

Implements IFlexibleField.

Implemented in FlexibleComponent< T >, FlexibleComponent< T >, and FlexibleGameObject.

## ◆ SetHierarchyIfConstantNull()

bool SetHierarchyIfConstantNull | ( | FlexibleHierarchyType | hierarchyType = `FlexibleHierarchyType.Self` | ) |

Change to FlexibleSceneObjectType.Hierarchy if FlexibleSceneObjectType.Constant and the referencing object is null.

Parameters

  hierarchyType | FlexibleHierarchyType to set

Returns
  Return true if changed.

## Member Data Documentation

## ◆ _HierarchyType

FlexibleHierarchyType _HierarchyType = FlexibleHierarchyType.Self
| protected

Reference type of Hierarchy specified when Type is FlexibleSceneObjectType.Hierarchy.

## ◆ _Type

FlexibleSceneObjectType _Type = FlexibleSceneObjectType.Constant
| protected

Specified type of value

## Property Documentation

## ◆ fieldInfo

System.Reflection.FieldInfo fieldInfo
| get set

Return the FieldInfo that owns this instance

## ◆ hierarchyType

FlexibleHierarchyType hierarchyType
| get set

In the case of FlexibleSceneObjectType.Hierarchy, return FlexibleHierarchyType representing which object to reference

## ◆ ownerObject

Object ownerObject
| get set

Return the object that owns this instance

## ◆ targetGameObject

GameObject targetGameObject
| get

Returns the GameObject to be referenced in case of FlexibleSceneObjectType.Hierarchy.

## ◆ targetGraph

NodeGraph targetGraph
| get

Returns the NodeGraph to be referenced in case of FlexibleSceneObjectType.Hierarchy.

## ◆ type

FlexibleSceneObjectType type
| get set

It returns a type