Skip to content

TransformVarData_ClassAPI

CG-Tespy edited this page May 4, 2020 · 1 revision

Contains the positional, rotational, and size-related state of a Transform referred to by a Flowchart variable.

Inherits from: SaveData
Namespace: CGTUnity.Fungus.SaveSystem

Public Properties

string GameObjectName

  • Readable: yes
  • Writable: yes
Quaternion Rotation
  • Readable: yes
  • Writable: yes
Vector3 Position
  • Readable: yes
  • Writable: yes
Vector3 LocalScale
  • Readable: yes
  • Writable: yes
Vector3 Up
  • Readable: yes
  • Writable: yes
Vector3 Right
  • Readable: yes
  • Writable: yes
Vector3 Forward
  • Readable: yes
  • Writable: yes

Public Methods

virtual void SetFrom(Transform transform)

  • Saves the state of the passed transform to this instance. If this already has state, it is overwritten.
virtual bool Equals(TransformVarData other)
  • Returns true if the state in this instance is the same as the one in the passed instance.
virtual void ApplyTo(Transform transform)
  • Alters the passed transform's state based on what is saved in this instance.

Clone this wiki locally