PLUGIN SDK / Registration options / ComponentField
ComponentField
A field of a plugin component type.
Kindrecord
NamespaceKroys.Plugins
Members9
Source
Options.csDECLARATION
Declaration
Namespace Kroys.Plugins, assembly KroysPlugins.Sdk.dll.
Declaration
public sealed record ComponentField(string Name, KroysValueType Type)
REFERENCE
Members
Constructors
#public ComponentField(string Name, KroysValueType Type)A field of a plugin component type.
- Name
- Field name: letters, digits and '_', starting with a letter.
- Type
- Value type (KROYS_VALUE_BOOL .. KROYS_VALUE_GUID).
Properties
#public string Name { get; init; }Field name: letters, digits and '_', starting with a letter.
#public KroysValueType Type { get; init; }Value type (KROYS_VALUE_BOOL .. KROYS_VALUE_GUID).
#public string? DisplayName { get; init; }Inspector label.
#public string? Tooltip { get; init; }Inspector tooltip.
#public uint Flags { get; init; }KROYS_FIELD_* flags.
#public object? Default { get; init; }Default value (bool, int, float, Vector2/3/4, string or Guid); null: zero.
#public float? Minimum { get; init; }Inspector range (both set: a slider).
#public float? Maximum { get; init; }Inspector range maximum.
Signatures
public ComponentField(string Name, KroysValueType Type) public string Name { get; init; } public KroysValueType Type { get; init; } public string? DisplayName { get; init; } public string? Tooltip { get; init; } public uint Flags { get; init; } public object? Default { get; init; } public float? Minimum { get; init; } public float? Maximum { get; init; }
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.