Guide 09
Lithium.Addons.AddonAttribute
Declares the package identity and display name of a Lithium addon.
This page is generated from the public C# symbols in src/game/sandbox/Code.
AddonAttribute
Status: Stable
Signature
C#
public sealed class AddonAttribute(string id, string name) : Attribute, IAddonManifestInfoDescription
Declares the package identity and display name of a Lithium addon.
Example
C#
[Addon("studio.addon", "name")]
public sealed class Example { }Members
Id
Status: Stable
Signature
C#
public string Id { get; init; }Description
The globally unique package identifier used to match the mounted addon.
Example
C#
var value = instance.Id;Name
Status: Stable
Signature
C#
public string Name { get; init; }Description
The human-readable addon name.
Example
C#
var value = instance.Name;