Table of Contents

Class ColorPickerAttribute

Namespace
Nautilus.Options.Attributes
Assembly
Nautilus.dll
Attribute used to signify the decorated UnityEngine.Color should be represented in the mod's option menu as a ModColorOption.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class ColorPickerAttribute : ModOptionAttribute, _Attribute
Inheritance
ColorPickerAttribute
Implements
Inherited Members
Extension Methods

Examples

using Nautilus.Json;
using Nautilus.Options;

[Menu("My Options Menu")]
public class Config : ConfigFile
{
    [ColorPicker("My Toggle")]
    public Color MyToggle;
}

Constructors

ColorPickerAttribute()

Signifies the decorated UnityEngine.Color should be represented in the mod's option menu as a ModColorOption.
public ColorPickerAttribute()

ColorPickerAttribute(string)

Signifies the decorated UnityEngine.Color should be represented in the mod's option menu as a ModColorOption.
public ColorPickerAttribute(string label = null)

Parameters

label string
The label for the toggle.

Properties

Advanced

Which type of color picker to use.
public bool Advanced { get; set; }

Property Value

bool

See Also