Skip to content

ComponentVersionAttribute

namespace Griff.Scenes;
public sealed class ComponentVersionAttribute : Attribute

The version of a component’s saved data, 1 without this. Raise it when what a property means changes (seconds become frames, two properties merge into one) and add an UpgradeFromAttribute step for each earlier version, so older scenes are brought up to date as they load. A rename alone doesn’t need one: use FormerNameAttribute.

public int Version { get; }