Skip to content

ComponentNameAttribute

namespace Griff.Scenes;
public sealed class ComponentNameAttribute : Attribute

Sets the name a component type is saved under. Defaults to the type’s full name; set this to keep the saved name when renaming or moving the class (or give it a FormerNameAttribute to move scenes to the new name).

public string Name { get; }