Skip to documentation
LITHIUM
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, IAddonManifestInfo

Description

Declares the package identity and display name of a Lithium addon.

Example

C#
[Addon("studio.addon", "name")]
public sealed class Example { }

View source

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;

View source

Name

Status: Stable

Signature

C#
public string Name { get; init; }

Description

The human-readable addon name.

Example

C#
var value = instance.Name;

View source

Cette page vous a-t-elle aidé ?

N’indiquez aucune donnée personnelle dans votre commentaire.

0/1000