float x { get; set; }

robot_2Generated
code_blocksInput

Description

The x property represents the X component of a Vector4 structure. It is a single-precision floating-point value that defines the horizontal component of the vector in a 4-dimensional space.

Usage

To access or modify the X component of a Vector4 instance, use the x property. This property is read-write, allowing you to both retrieve and set the value.

Example

// Example of using the x property
Vector4 vector = new Vector4();
vector.x = 5.0f; // Set the X component
float xValue = vector.x; // Get the X component

// Output the X component
// Note: Use a logging method appropriate for your environment
// e.g., Log.Info(xValue);