Skip to content

Game.UI.Widgets.Int3InputField

Assembly:
Assembly-CSharp (likely — game/mod assembly containing UI widgets)

Namespace:
Game.UI.Widgets

Type:
class

Base:
IntField

Summary:
A concrete UI input field class specialized for Unity.Mathematics.int3 values. This class simply specifies the generic IntField with T = int3 and does not add any members or override behavior itself. It is intended to be used wherever a 3-component integer vector input is needed in the game's UI. Implementation and behavior (properties, events, rendering, validation) come from the generic IntField base class.


Fields

  • None
    This class does not declare any fields. All state is inherited from IntField (and ultimately from its base classes).

Properties

  • None declared
    No new public or private properties are declared in this class. Use the properties exposed by IntField (for example value/valueChanged APIs provided by the base).

Constructors

  • public Int3InputField()
    No explicit constructor is defined in the source. The compiler-provided default constructor is used; any required initialization should come from the base class (or by overriding lifecycle methods if the base exposes them).

Methods

  • None declared/overridden
    This class does not declare or override any methods. All behavior is inherited from IntField. To customize behavior, override or extend the members provided by the base class.

Usage Example

using Unity.Mathematics;
using Game.UI.Widgets;

// Instantiate the field (typical usage depends on the UI framework integration)
var int3Field = new Int3InputField();

// Set initial value — actual property name depends on IntField<T> API (common names: Value or value)
int3 initial = new int3(1, 2, 3);
int3Field.value = initial; // or int3Field.Value = initial;

// Subscribe to changes — event/property names depend on the base implementation
// Example (pseudocode; adapt to the actual IntField<T> API):
int3Field.onValueChanged += (int3 newValue) =>
{
    // handle updated value
    UnityEngine.Debug.Log($"New int3 value: {newValue}");
};

Notes: - Because Int3InputField contains no additional logic, refer to the IntField documentation for details about available properties, events, validation, formatting, and lifecycle methods to override. - If you need to add custom behavior (validation, formatting, or specialized drawing), create a derived class that overrides the appropriate base members or wraps an Int3InputField instance.