DistanceAttribute
namespace Griff.Scenes;
public sealed class DistanceAttribute : AttributeMarks a number property as a distance from the entity in world units, e.g. how far a light reaches or how close an enemy notices the player: with the entity selected, the editor’s Scene view draws it as a circle around it, and View > Distance Handles puts a handle on the circle to drag. Zero isn’t drawn (it often means “anywhere”).
Properties
Section titled “Properties”Center
Section titled “Center”public string? Center { get; init; }A Vector2 property the circle is centered on, offset from the entity in its own units (a light’s Offset).
public string? When { get; init; }A property that has to be set for the distance to count (not empty, false or zero), e.g. a shooter’s range only matters with a Target. The circle isn’t drawn without it.