Skip to main content

Class TransformDataLog

A GameObject transform DataLog. This DataLog only contains the position and the rotation, as scale isn't really important.

[Serializable]
public class TransformDataLog : DataLog

Inheritance​

Constructors​

TransformDataLog()​

Default constructor for TransformDataLog.

public TransformDataLog()

TransformDataLog(Transform)​

Initializes a new instance of the TransformDataLog class with a Transform object.

public TransformDataLog(Transform transform)

Parameters​

NameTypeDescription
transformTransformThe Transform whose data is to be logged.

TransformDataLog(GameObject)​

Initializes a new instance of TransformDataLog class with a GameObject.

public TransformDataLog(GameObject obj)

Parameters​

NameTypeDescription
objGameObjectThe GameObject whose transform data is to be logged.

Fields​

position​

Position data of the transform.

public VectorDataLog position

Field Value​

VectorDataLog

rotation​

Rotation data of the transform.

public VectorDataLog rotation

Field Value​

VectorDataLog

  • Constructors
    • TransformDataLog()
    • TransformDataLog(Transform)
    • TransformDataLog(GameObject)
  • Fields
    • position
    • rotation