Actor
Summary
Scene object that contains all actors and lifecycle.
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Thread.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.
Definition
Namespace: SDT4.Managed.Core
Assembly: SDT4.Managed.Core.dll
class Actor
Inheritance:
Object ➔ Actor
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; Scene |
Scene | The scene in which this actor is held. Is NULL if the actor is invalid. |
public get; GlobalId |
Guid | |
public get; ScopeId |
Guid | |
public get; LocalId |
UInt64 | |
public get; Mobility |
Mobility | |
public get; Parent |
Actor | |
public get; Children |
Actor[] | |
public get; set; Name |
String | |
public get; ScopeRoot |
Actor | Returns the top most actor in the current scope. |
public get; IsValid |
Boolean | |
public get; IsAlive |
Boolean |
Methods
public Boolean HasComponent<T>()
Returns:
public T GetComponent<T>()
Returns:
- T:
public T AddComponent<T>()
Returns:
- T:
public Void RemoveComponent<T>()
public IEnumerable<Component> EnumerateComponents()
Returns:
public Actor GetActorByLocalId(UInt64 localId)
Parameters:
localId(UInt64):
Returns:
public T AsScript<T>()
Returns:
- T:
public Actor CreateEmptyActor(String name, Boolean stationary)
Parameters:
Returns:
public Actor SpawnPrefabActor(String prefabAsset, Object? state, String name, Boolean stationary)
Parameters:
Returns:
public virtual Boolean Equals(Object? obj)
Parameters:
obj(Object?):
Returns:
public virtual Int32 GetHashCode()
Returns:
public virtual String ToString()
Returns: