Skip to content

SubassetLabelAttribute

Namespace: SideXP.Core | Inherits from: Attribute

public class SubassetLabelAttribute : Attribute

Defines metadata for ScriptableObject classes that can be used as subassets from a property marked with SubassetsListOptionsAttribute.

Constructors

SubassetLabelAttribute()

public SubassetLabelAttribute()

Defines metadata for ScriptableObject classes that can be used as subassets from a property marked with SubassetsListOptionsAttribute.

SubassetLabelAttribute(string)

public SubassetLabelAttribute(string name)

Parameters

  • name

SubassetLabelAttribute(string, string)

public SubassetLabelAttribute(string name, string description)

Defines metadata for ScriptableObject classes that can be used as subassets from a property marked with SubassetsListOptionsAttribute.

Parameters

  • name
  • description

Properties

Name

public string Name

The label displayed in the list's dropdown, and the default name of this subasset on its creation. If not defined, the "nicified" type name of this class is used.

Description

public string Description

The description of the subasset, as displayed in the inspector.