Class Actor
Actor is a MonoBehaviour to place GameObject in Gameplay level.
public class Actor : FlowGraphObject, IFlowGraphRuntime, IFlowProgramRuntime, IFlowGraphContainer, ICeresGraphContainer
- Inheritance
-
Actor
- Implements
- Derived
- Inherited Members
Constructors
Actor()
public Actor()
Fields
advancedSettings
public Actor.FlowGraphSettings advancedSettings
Field Value
Methods
Awake()
[ImplementableEvent]
protected virtual void Awake()
FixedUpdate()
[ImplementableEvent]
protected virtual void FixedUpdate()
GetActorComponent(SerializedType<ActorComponent>)
[ExecutableFunction]
public ActorComponent GetActorComponent(SerializedType<ActorComponent> type)
Parameters
typeSerializedType<ActorComponent>
Returns
GetActorComponent<TComponent>()
public TComponent GetActorComponent<TComponent>() where TComponent : ActorComponent
Returns
- TComponent
Type Parameters
TComponent
GetActorComponents<TComponent>(List<TComponent>)
public void GetActorComponents<TComponent>(List<TComponent> components) where TComponent : ActorComponent
Parameters
componentsList<TComponent>
Type Parameters
TComponent
GetActorHandle()
Get actor's id according to actor's world
[ExecutableFunction]
public ActorHandle GetActorHandle()
Returns
GetController()
[ExecutableFunction]
public PlayerController GetController()
Returns
GetFlowGraph()
Get a FlowGraph instance from this container
public override FlowGraph GetFlowGraph()
Returns
Remarks
Instance is isolated from persistent data
GetTController<TController>()
public TController GetTController<TController>() where TController : PlayerController
Returns
- TController
Type Parameters
TController
GetWorld()
Get actor's world
[ExecutableFunction]
public GameWorld GetWorld()
Returns
Invoke_GetActorComponent(Actor, SerializedType<ActorComponent>)
[ExecutableFunction]
public static ActorComponent Invoke_GetActorComponent(Actor value, SerializedType<ActorComponent> value)
Parameters
valueActorvalueSerializedType<ActorComponent>
Returns
Invoke_GetActorHandle(Actor)
[ExecutableFunction]
public static ActorHandle Invoke_GetActorHandle(Actor value)
Parameters
valueActor
Returns
Invoke_GetController(Actor)
[ExecutableFunction]
public static PlayerController Invoke_GetController(Actor value)
Parameters
valueActor
Returns
Invoke_GetWorld(Actor)
[ExecutableFunction]
public static GameWorld Invoke_GetWorld(Actor value)
Parameters
valueActor
Returns
LateUpdate()
[ImplementableEvent]
protected virtual void LateUpdate()
OnDestroy()
[ImplementableEvent]
protected virtual void OnDestroy()
OnDisable()
[ImplementableEvent]
protected virtual void OnDisable()
OnEnable()
[ImplementableEvent]
protected virtual void OnEnable()
RegisterActor(Actor)
Register an actor to world
protected static void RegisterActor(Actor actor)
Parameters
actorActor
Start()
[ImplementableEvent]
protected virtual void Start()
UnregisterActor(Actor)
Unregister an actor from world
protected static void UnregisterActor(Actor actor)
Parameters
actorActor
Update()
[ImplementableEvent]
protected virtual void Update()