Table of Contents

Class KeybindAttribute

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

Examples

using Nautilus.Json;
using Nautilus.Options;
using UnityEngine;

[Menu("My Options Menu")]
public class Config : ConfigFile
{
    [Keybind("My Keybind")]
    public KeyCode MyKeybind;
}

Constructors

KeybindAttribute()

Signifies the decorated UnityEngine.KeyCode should be represented in the mod's option menu as a ModKeybindOption.
public KeybindAttribute()

KeybindAttribute(string)

Signifies the decorated UnityEngine.KeyCode should be represented in the mod's option menu as a ModKeybindOption.
public KeybindAttribute(string label = null)

Parameters

label string
The label for the keybind. If none is set, the name of the member will be used.

See Also