Attribute · Ara
ComponentAttribute
Declares a blittable component stored in engine ECS columns. Apply to a partial struct; the source generator registers it in the Schema DB (name, fields, units, ranges, docs), so it appears in reflection.json and agent tools.
public sealed class ComponentAttribute : AttributeConstructors
ComponentAttribute
public ComponentAttribute(string name = null);Declares a blittable component stored in engine ECS columns. Apply to a partial struct; the source generator registers it in the Schema DB (name, fields, units, ranges, docs), so it appears in reflection.json and agent tools.
Properties
Name
public string Name { get; }Schema type name (PascalCase); defaults to the struct name.