Three small record structs used by the Editor assembly to capture a GameObject and its transform components: PositionState stores object and world position, RotationState stores object, position and rotation, ScaleState stores object, position and scale.
#nullable enable using Sandbox; namespace BlenderActions; /// <summary>Captures one game object and its world position.</summary> internal readonly record struct PositionState(GameObject Object, Vector3 Position); /// <summary>Captures one game object, world position, and world rotation.</summary> internal readonly record struct RotationState(GameObject Object, Vector3 Position, Rotation Rotation); /// <summary>Captures one game object, world position, and world scale.</summary> internal readonly record struct ScaleState(GameObject Object, Vector3 Position, Vector3 Scale);