ResizableAttribute
namespace Griff.Scenes;
public sealed class ResizableAttribute : AttributeMarks a Vector2 as the size of a rectangle around the entity, in its own units before its scale: a button’s clickable area, a bar’s or slider’s size, a save slot’s screenshot. With Resize handles the Scene view puts handles on its edges and corners to drag.
Properties
Section titled “Properties”Center
Section titled “Center”public string? Center { get; init; }A Vector2 property of the component that says where the rectangle’s middle is from the entity’s (a save slot’s Picture Offset): dragging an edge keeps the opposite one where it is by moving it. Without one it’s centered on the entity, and grows around it.
Upright
Section titled “Upright”public bool Upright { get; init; }It stays upright, the entity’s rotation ignored (a button’s clickable area).