Vector2

unityengine.Vector2 (extern class)

Unity Vector2 struct extern binding for Ceramic. Represents 2D vectors and points with x and y components.

Commonly used for 2D positions, directions, velocities, and texture coordinates in Unity. This minimal binding provides the properties and constructor used by Ceramic.

Instance Members

unity
x: Single

The x component of the vector. Read-only in this binding.


unity
y: Single

The y component of the vector. Read-only in this binding.


unity
new(x: Single, y: Single): Void

Creates a new Vector2 with the given x and y components.

Name Type Description
x Single The x component
y Single The y component

Metadata

Name Parameters
:nativeGen -