Skip to content

Game.UI.Widgets.Bezier4x3Field

Assembly:
Assembly-CSharp (typical for Cities: Skylines 2 game code / mods).

Namespace:
Game.UI.Widgets

Type:
class

Base:
Field

Summary:
A UI field widget that holds and exposes a Bezier4x3 value. This class is a thin, concrete specialization of the generic Field for the Bezier4x3 type from Colossal.Mathematics. The class itself contains no additional members — it relies on functionality provided by the Field base class to manage value storage, serialization, UI binding, and change notifications.

Relevant type: - Colossal.Mathematics.Bezier4x3 — represents a 4x3 Bezier curve structure used by the game math library.


Fields

  • (none declared in this class)
    The class does not declare any private or public fields. All state and behavior are inherited from Field.

Properties

  • (none declared in this class)
    Use the properties provided by the generic Field base class (for example, Value, onValueChanged events, etc.). See Field documentation for available members.

Constructors

  • public Bezier4x3Field()
    The default parameterless constructor is present implicitly. No additional construction logic is defined in this subclass.

Methods

  • (none declared in this class)
    All behavior is provided by the base class Field. Override methods (e.g., for custom drawing, validation, or serialization) can be added in a derived class if needed.

Usage Example

using Colossal.Mathematics;
using Game.UI.Widgets;

// create a field instance (how you obtain/create widgets depends on your UI framework integration)
var bezierField = new Bezier4x3Field();

// assign a Bezier4x3 value (example constructing a value — replace with actual control points)
var bezierValue = new Bezier4x3
{
    // fill in fields/properties according to Bezier4x3 definition
    // example placeholders — adjust to the actual struct members:
    // p0 = new float3(...),
    // p1 = new float3(...),
    // ...
};

bezierField.Value = bezierValue;

// subscribe to changes
// bezierField.onValueChanged += (oldVal, newVal) => { /* react to user edits */ };

Notes: - Because Bezier4x3Field does not add members, consult Field for methods, life cycle, serialization, and events you can use. - The exact members of Colossal.Mathematics.Bezier4x3 depend on the game's math library; inspect that struct to construct or read values correctly.