FeatureAttributeclass

Sets the category or the group of a type or a type member. This info can then be retrieved via DisplayInfo library.

objectAttributeFeatureAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public class Sandbox.FeatureAttribute : System.Attribute

Constructors1

Showing 1 constructors

public FeatureAttribute(string value)PUBLICCONSTRUCTOR

ParameterTypeDescription
valuestring

Properties5

Showing 5 properties

public string Sandbox.FeatureAttribute.Description { get; set; }PUBLICGETSET

The description of the feature

Returns:string

public string Sandbox.FeatureAttribute.Icon { get; set; }PUBLICGETSET

Icon to show next to the feature

Returns:string

public string Sandbox.FeatureAttribute.Identifier { get; set; }PUBLICGETSET

How we will group features together

Returns:string

public Sandbox.EditorTint Sandbox.FeatureAttribute.Tint { get; set; }PUBLICGETSET

The color of the feature button. Helps group things, helps things to stand out. Defaults to white.

Returns:EditorTint

public string Sandbox.FeatureAttribute.Title { get; set; }PUBLICGETSET

Title of the feature. Keep it short please!

Returns:string

On this page