Show / Hide Table of Contents

Class GameObjectSubject

A subject that uses a game object as it's foundation for values to be recorded.

Inheritance
System.Object
GameObjectSubject
Implements
ISubject
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.Record
Assembly: RecordAndPlay.dll
Syntax
public class GameObjectSubject : ISubject

Constructors

GameObjectSubject(GameObject)

Builders a subject around the gameobject

Declaration
public GameObjectSubject(GameObject obj)
Parameters
Type Name Description
UnityEngine.GameObject obj

The object to capture values from

GameObjectSubject(Transform)

Builders a subject around the gameobject

Declaration
public GameObjectSubject(Transform obj)
Parameters
Type Name Description
UnityEngine.Transform obj

The object to capture values from

Methods

GetGameObject()

The Gameobject that this subject records.

Declaration
public GameObject GetGameObject()
Returns
Type Description
UnityEngine.GameObject

The Gameobject that this subject records.

GetID()

Declaration
public int GetID()
Returns
Type Description
System.Int32

GetName()

Declaration
public string GetName()
Returns
Type Description
System.String

GetPosition()

Declaration
public Vector3 GetPosition()
Returns
Type Description
UnityEngine.Vector3

GetRotation()

Declaration
public Vector3 GetRotation()
Returns
Type Description
UnityEngine.Vector3

Implements

ISubject
Back to top Generated by DocFX