Table of Contents

Class CGGameObject

GameObject data (Bounds + Object)

[CGDataInfo("#FFF59D")]
public class CGGameObject : CGBounds
Inheritance
CGGameObject
Inherited Members

Constructors

CGGameObject()

public CGGameObject()

CGGameObject(CGGameObject)

public CGGameObject(CGGameObject source)

Parameters

source CGGameObject

CGGameObject(CGGameObjectProperties)

public CGGameObject(CGGameObjectProperties properties)

Parameters

properties CGGameObjectProperties

CGGameObject(GameObject)

public CGGameObject(GameObject obj)

Parameters

obj GameObject

CGGameObject(GameObject, Vector3, Vector3, Vector3)

public CGGameObject(GameObject obj, Vector3 translate, Vector3 rotate, Vector3 scale)

Parameters

obj GameObject
translate Vector3
rotate Vector3
scale Vector3

Fields

Object

The game object associated with this data

public GameObject Object

Field Value

GameObject

Rotate

Rotation applied to the object (Euler angles)

public Vector3 Rotate

Field Value

Vector3

Scale

Scale applied to the object

public Vector3 Scale

Field Value

Vector3

Translate

Translation offset applied to the object

public Vector3 Translate

Field Value

Vector3

Properties

Matrix

Gets the TRS matrix combining translation, rotation, and scale

public Matrix4x4 Matrix { get; }

Property Value

Matrix4x4

Methods

Clone<T>()

Creates a copy of this data instance

public override T Clone<T>() where T : CGData

Returns

T

Type Parameters

T

RecalculateBounds()

Recalculates the bounds and updates the value of Bounds

public override void RecalculateBounds()