Vector2 AxisY { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The AxisY property of the CurveEditor class represents the Y-axis range of the curve editor. It is a Vector2 type, which typically holds two float values indicating the minimum and maximum values of the Y-axis. This property is crucial for defining the vertical bounds within which the curve can be edited or displayed.

Usage

To use the AxisY property, you can get or set its value to adjust the Y-axis range of the curve editor. This is useful when you need to customize the vertical scale of the curve being edited.

For example, if you want to set the Y-axis range from -10 to 10, you can do so by assigning a new Vector2 to the AxisY property.

Example

// Example of setting the AxisY property
CurveEditor curveEditor = new CurveEditor();

// Set the Y-axis range from -10 to 10
curveEditor.AxisY = new Vector2(-10, 10);

// Retrieve the current Y-axis range
Vector2 currentAxisY = curveEditor.AxisY;

// Output the current Y-axis range
// Note: Avoid using Console.WriteLine in s&box
// Instead, use appropriate logging or UI display methods
// Example: Log.Info($"Current AxisY: {currentAxisY}");