(One intermediate revision by the same user not shown)
Line 4:
Line 4:
}}
}}
{{stub}}
{{stub}}
Update transform is part of the [[Undo]] system, and is used in the [[Component:UndoManager|Undo Manager]] to allow undoing and redoing of moving an object.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Target|Slot|
|Target|Slot| The slot that was moved.
|RestoreParent|Bool|
|RestoreParent|Bool| Whether or not to restore the parent object.
|RestorePosition|Bool|
|RestorePosition|Bool| Whether or not to restore the position of the object.
|RestoreRotation|Bool|
|RestoreRotation|Bool| Whether or not to restore the rotation of the object.
|RestoreScale|Bool|
|RestoreScale|Bool| Whether or not to restore the scale of the object.
|ParentBefore|Slot|
|ParentBefore|Slot| The parent slot that the object had before the move.
|ParentAfter|Slot|
|ParentAfter|Slot| The parent slot the object had after the move.
|LocalPositionBefore|Float3|
|LocalPositionBefore|Float3| The Local Position that the object had before the move.
|LocalRotationBefore|FloatQ|
|LocalRotationBefore|FloatQ| The Local Rotation that the object had before the move.
|LocalScaleBefore|Float3|
|LocalScaleBefore|Float3| The Local Scale that the object had before the move.
|GlobalPositionBefore|Float3|
|GlobalPositionBefore|Float3| The Global Position that the object had before the move.
|GlobalRotationBefore|FloatQ|
|GlobalRotationBefore|FloatQ| The Global Rotation that the object had before the move.
|GlobalScaleBefore|Float3|
|GlobalScaleBefore|Float3| The Global Scale that the object had before the move.
|LocalPositionAfter|Float3|
|LocalPositionAfter|Float3| The Local Position the object had after the move.
|LocalRotationAfter|FloatQ|
|LocalRotationAfter|FloatQ| The Local Rotation the object had after the move.
|LocalScaleAfter|Float3|
|LocalScaleAfter|Float3| The Local Scale the object had after the move.
|GlobalPositionAfter|Float3|
|GlobalPositionAfter|Float3| The Global Position the object had after the move.
|GlobalRotationAfter|FloatQ|
|GlobalRotationAfter|FloatQ| The Global Rotation the object had after the move.
|GlobalScaleAfter|Float3|
|GlobalScaleAfter|Float3| The Global Scale the object had after the move.
|_performed|Bool|
|_performed|Bool| Whether the action is performed or it is in the future (due to undoing by the user.
|_description|String|
|_description|String| The description of this move action.