Table of Contents

Class CGGameObjectProperties

Defines properties for game objects used within the Curvy Generator. This class allows for specifying transformations (translation, rotation, scale) to be applied to a game object when it is utilized by a generator module.

[Serializable]
public class CGGameObjectProperties
Inheritance
CGGameObjectProperties

Constructors

CGGameObjectProperties()

public CGGameObjectProperties()

CGGameObjectProperties(GameObject)

Initializes a new instance of the CGGameObjectProperties class with the specified game object.

public CGGameObjectProperties(GameObject gameObject)

Parameters

gameObject GameObject

The game object.

Properties

Matrix

Gets the transformation matrix combining translation, rotation, and scale.

public Matrix4x4 Matrix { get; }

Property Value

Matrix4x4

Object

Gets or sets the game object.

[CanBeNull]
public GameObject Object { get; set; }

Property Value

GameObject

Rotation

Gets or sets the rotation vector (Euler angles) to apply to the game object.

public Vector3 Rotation { get; set; }

Property Value

Vector3

Scale

Gets or sets the scale vector to apply to the game object.

public Vector3 Scale { get; set; }

Property Value

Vector3

Translation

Gets or sets the translation vector to apply to the game object.

public Vector3 Translation { get; set; }

Property Value

Vector3