Class Actor
Consists of the GameObject meant to represent the subject and an event handler for the custom events that occured during a recording.
Inheritance
System.Object
Actor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RecordAndPlay.Playback
Assembly: RecordAndPlay.dll
Syntax
public class Actor
Constructors
Actor(GameObject)
Create a new actor with a null event handler.
Declaration
public Actor(GameObject representation)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | representation | The object to represent the subject. |
Actor(GameObject, IPlaybackCustomEventHandler)
Create a new actor.
Declaration
public Actor(GameObject representation, IPlaybackCustomEventHandler customEventHandler)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | representation | The object to represent the subject. |
IPlaybackCustomEventHandler | customEventHandler | The handler for all events that occur to the specific subject. |
Properties
CustomEventHandler
The custom event handler called during playback.
Declaration
public IPlaybackCustomEventHandler CustomEventHandler { get; }
Property Value
Type | Description |
---|---|
IPlaybackCustomEventHandler |
Representation
The GameObject in the scene meant to represent the subject in the recording.
Declaration
public GameObject Representation { get; }
Property Value
Type | Description |
---|---|
UnityEngine.GameObject |