ParelVRDocs
Player site

Scripting / Reference

UnityEngine

The parts of UnityEngine that world scripts may use. Anything not listed here is not available in VoltCS.

Color#

UnityEngine.Color import

Color properties#

float this[] { get; set; }
static Color aliceBlue { get; }
static Color antiqueWhite { get; }
static Color aquamarine { get; }
static Color azure { get; }
static Color beige { get; }
static Color bisque { get; }
static Color black { get; }
static Color blanchedAlmond { get; }
static Color blue { get; }
static Color blueViolet { get; }
static Color brown { get; }
static Color burlywood { get; }
static Color cadetBlue { get; }
static Color chartreuse { get; }
static Color chocolate { get; }
static Color clear { get; }
static Color coral { get; }
static Color cornflowerBlue { get; }
static Color cornsilk { get; }
static Color crimson { get; }
static Color cyan { get; }
static Color darkBlue { get; }
static Color darkCyan { get; }
static Color darkGoldenRod { get; }
static Color darkGray { get; }
static Color darkGreen { get; }
static Color darkKhaki { get; }
static Color darkMagenta { get; }
static Color darkOliveGreen { get; }
static Color darkOrange { get; }
static Color darkOrchid { get; }
static Color darkRed { get; }
static Color darkSalmon { get; }
static Color darkSeaGreen { get; }
static Color darkSlateBlue { get; }
static Color darkSlateGray { get; }
static Color darkTurquoise { get; }
static Color darkViolet { get; }
static Color deepPink { get; }
static Color deepSkyBlue { get; }
static Color dimGray { get; }
static Color dodgerBlue { get; }
static Color firebrick { get; }
static Color floralWhite { get; }
static Color forestGreen { get; }
static Color gainsboro { get; }
Color gamma { get; }
static Color ghostWhite { get; }
static Color gold { get; }
static Color goldenRod { get; }
static Color gray { get; }
static Color gray1 { get; }
static Color gray2 { get; }
static Color gray3 { get; }
static Color gray4 { get; }
static Color gray5 { get; }
static Color gray6 { get; }
static Color gray7 { get; }
static Color gray8 { get; }
static Color gray9 { get; }
float grayscale { get; }
static Color green { get; }
static Color greenYellow { get; }
static Color grey { get; }
static Color honeydew { get; }
static Color hotPink { get; }
static Color indianRed { get; }
static Color indigo { get; }
static Color ivory { get; }
static Color khaki { get; }
static Color lavender { get; }
static Color lavenderBlush { get; }
static Color lawnGreen { get; }
static Color lemonChiffon { get; }
static Color lightBlue { get; }
static Color lightCoral { get; }
static Color lightCyan { get; }
static Color lightGoldenRod { get; }
static Color lightGoldenRodYellow { get; }
static Color lightGray { get; }
static Color lightGreen { get; }
static Color lightPink { get; }
static Color lightSalmon { get; }
static Color lightSeaGreen { get; }
static Color lightSkyBlue { get; }
static Color lightSlateBlue { get; }
static Color lightSlateGray { get; }
static Color lightSteelBlue { get; }
static Color lightYellow { get; }
static Color limeGreen { get; }
Color linear { get; }
static Color linen { get; }
static Color magenta { get; }
static Color maroon { get; }
float maxColorComponent { get; }
static Color mediumAquamarine { get; }
static Color mediumBlue { get; }
static Color mediumOrchid { get; }
static Color mediumPurple { get; }
static Color mediumSeaGreen { get; }
static Color mediumSlateBlue { get; }
static Color mediumSpringGreen { get; }
static Color mediumTurquoise { get; }
static Color mediumVioletRed { get; }
static Color midnightBlue { get; }
static Color mintCream { get; }
static Color mistyRose { get; }
static Color moccasin { get; }
static Color navajoWhite { get; }
static Color navyBlue { get; }
static Color oldLace { get; }
static Color olive { get; }
static Color oliveDrab { get; }
static Color orange { get; }
static Color orangeRed { get; }
static Color orchid { get; }
static Color paleGoldenRod { get; }
static Color paleGreen { get; }
static Color paleTurquoise { get; }
static Color paleVioletRed { get; }
static Color papayaWhip { get; }
static Color peachPuff { get; }
static Color peru { get; }
static Color pink { get; }
static Color plum { get; }
static Color powderBlue { get; }
static Color purple { get; }
static Color rebeccaPurple { get; }
static Color red { get; }
static Color rosyBrown { get; }
static Color royalBlue { get; }
static Color saddleBrown { get; }
static Color salmon { get; }
static Color sandyBrown { get; }
static Color seaGreen { get; }
static Color seashell { get; }
static Color sienna { get; }
static Color silver { get; }
static Color skyBlue { get; }
static Color slateBlue { get; }
static Color slateGray { get; }
static Color snow { get; }
static Color softBlue { get; }
static Color softGreen { get; }
static Color softRed { get; }
static Color softYellow { get; }
static Color springGreen { get; }
static Color steelBlue { get; }
static Color tan { get; }
static Color teal { get; }
static Color thistle { get; }
static Color tomato { get; }
static Color turquoise { get; }
static Color violet { get; }
static Color violetRed { get; }
static Color wheat { get; }
static Color white { get; }
static Color whiteSmoke { get; }
static Color yellow { get; }
static Color yellowGreen { get; }
static Color yellowNice { get; }

Color methods#

static Color HSVToRGB(float H, float S, float V)
static Color HSVToRGB(float H, float S, float V, bool hdr)
static Color Lerp(Color a, Color b, float t)
static Color Lerp(Color a, Color b, float t)
static Color LerpUnclamped(Color a, Color b, float t)
static Color LerpUnclamped(Color a, Color b, float t)
static void RGBToHSV(Color rgbColor, float H, float S, float V)
static void RGBToHSV(Color rgbColor, float H, float S, float V)

Operators and conversions: 11 available.

Mathf#

UnityEngine.Mathf import

Mathf properties#

static float Epsilon { get; }

Mathf methods#

static int Abs(int value)
static float Abs(float f)
static float Acos(float f)
static bool Approximately(float a, float b)
static float Asin(float f)
static float Atan(float f)
static float Atan2(float y, float x)
static float Ceil(float f)
static int CeilToInt(float f)
static int Clamp(int value, int min, int max)
static float Clamp(float value, float min, float max)
static float Clamp01(float value)
static int ClosestPowerOfTwo(int value)
static Color CorrelatedColorTemperatureToRGB(float kelvin)
static float Cos(float f)
static float DeltaAngle(float current, float target)
static float Exp(float power)
static UInt16 FloatToHalf(float val)
static float Floor(float f)
static int FloorToInt(float f)
static float Gamma(float value, float absmax, float gamma)
static float GammaToLinearSpace(float value)
static float HalfToFloat(UInt16 val)
static float InverseLerp(float a, float b, float value)
static bool IsPowerOfTwo(int value)
static float Lerp(float a, float b, float t)
static float LerpAngle(float a, float b, float t)
static float LerpUnclamped(float a, float b, float t)
static float LinearToGammaSpace(float value)
static float Log(float f)
static float Log(float f, float p)
static float Log10(float f)
static int Max(int a, int b)
static int Max(int[] values)
static float Max(float a, float b)
static float Max(float[] values)
static int Min(int a, int b)
static int Min(int[] values)
static float Min(float a, float b)
static float Min(float[] values)
static float MoveTowards(float current, float target, float maxDelta)
static float MoveTowardsAngle(float current, float target, float maxDelta)
static int NextPowerOfTwo(int value)
static float PerlinNoise(float x, float y)
static float PerlinNoise1D(float x)
static float PingPong(float t, float length)
static float Pow(float f, float p)
static float Repeat(float t, float length)
static float Round(float f)
static int RoundToInt(float f)
static float Sign(float f)
static float Sin(float f)
static float SmoothDamp(float current, float target, float currentVelocity, float smoothTime)
static float SmoothDamp(float current, float target, float currentVelocity, float smoothTime, float maxSpeed)
static float SmoothDamp(float current, float target, float currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
static float SmoothDampAngle(float current, float target, float currentVelocity, float smoothTime)
static float SmoothDampAngle(float current, float target, float currentVelocity, float smoothTime, float maxSpeed)
static float SmoothDampAngle(float current, float target, float currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
static float SmoothStep(float from, float to, float t)
static float Sqrt(float f)
static float Tan(float f)

Quaternion#

UnityEngine.Quaternion import

Quaternion properties#

float this[] { get; set; }
Vector3 eulerAngles { get; set; }
static Quaternion identity { get; }
Quaternion normalized { get; }

Quaternion methods#

static float Angle(Quaternion a, Quaternion b)
static float Angle(Quaternion a, Quaternion b)
static Quaternion AngleAxis(float angle, Vector3 axis)
static Quaternion AngleAxis(float angle, Vector3 axis)
static float Dot(Quaternion a, Quaternion b)
static float Dot(Quaternion a, Quaternion b)
static Quaternion Euler(float x, float y, float z)
static Quaternion Euler(Vector3 euler)
static Quaternion Euler(Vector3 euler)
static Quaternion FromToRotation(Vector3 fromDirection, Vector3 toDirection)
static Quaternion FromToRotation(Vector3 fromDirection, Vector3 toDirection)
static Quaternion Inverse(Quaternion rotation)
static Quaternion Inverse(Quaternion rotation)
static Quaternion Lerp(Quaternion a, Quaternion b, float t)
static Quaternion Lerp(Quaternion a, Quaternion b, float t)
static Quaternion LerpUnclamped(Quaternion a, Quaternion b, float t)
static Quaternion LerpUnclamped(Quaternion a, Quaternion b, float t)
static Quaternion LookRotation(Vector3 forward)
static Quaternion LookRotation(Vector3 forward, Vector3 upwards)
static Quaternion LookRotation(Vector3 forward)
static Quaternion LookRotation(Vector3 forward, Vector3 upwards)
void Normalize()
static Quaternion Normalize(Quaternion q)
static Quaternion Normalize(Quaternion q)
static Quaternion RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta)
static Quaternion RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta)
void Set(float newX, float newY, float newZ, float newW)
void SetFromToRotation(Vector3 fromDirection, Vector3 toDirection)
void SetFromToRotation(Vector3 fromDirection, Vector3 toDirection)
void SetLookRotation(Vector3 view)
void SetLookRotation(Vector3 view, Vector3 up)
void SetLookRotation(Vector3 view)
void SetLookRotation(Vector3 view, Vector3 up)
static Quaternion Slerp(Quaternion a, Quaternion b, float t)
static Quaternion Slerp(Quaternion a, Quaternion b, float t)
static Quaternion SlerpUnclamped(Quaternion a, Quaternion b, float t)
static Quaternion SlerpUnclamped(Quaternion a, Quaternion b, float t)
void ToAngleAxis(float angle, Vector3 axis)

Operators and conversions: 4 available.

Random#

UnityEngine.Random import

Random properties#

static Vector2 insideUnitCircle { get; }
static Vector3 insideUnitSphere { get; }
static Vector3 onUnitSphere { get; }
static Quaternion rotation { get; }
static Quaternion rotationUniform { get; }
static float value { get; }

Random methods#

static Color ColorHSV()
static Color ColorHSV(float hueMin, float hueMax)
static Color ColorHSV(float hueMin, float hueMax, float saturationMin, float saturationMax, float valueMin, float valueMax)
static int Range(int minInclusive, int maxExclusive)
static float Range(float minInclusive, float maxInclusive)

Vector2#

UnityEngine.Vector2 import

Vector2 properties#

float this[] { get; set; }
static Vector2 down { get; }
static Vector2 left { get; }
float magnitude { get; }
static Vector2 negativeInfinity { get; }
Vector2 normalized { get; }
static Vector2 one { get; }
static Vector2 positiveInfinity { get; }
static Vector2 right { get; }
float sqrMagnitude { get; }
static Vector2 up { get; }
static Vector2 zero { get; }

Vector2 methods#

static float Angle(Vector2 from, Vector2 to)
static float Angle(Vector2 from, Vector2 to)
static Vector2 ClampMagnitude(Vector2 vector, float maxLength)
static Vector2 ClampMagnitude(Vector2 vector, float maxLength)
static float Distance(Vector2 a, Vector2 b)
static float Distance(Vector2 a, Vector2 b)
static float Dot(Vector2 lhs, Vector2 rhs)
static float Dot(Vector2 lhs, Vector2 rhs)
static Vector2 Lerp(Vector2 a, Vector2 b, float t)
static Vector2 Lerp(Vector2 a, Vector2 b, float t)
static Vector2 LerpUnclamped(Vector2 a, Vector2 b, float t)
static Vector2 LerpUnclamped(Vector2 a, Vector2 b, float t)
static Vector2 Max(Vector2 lhs, Vector2 rhs)
static Vector2 Max(Vector2 lhs, Vector2 rhs)
static Vector2 Min(Vector2 lhs, Vector2 rhs)
static Vector2 Min(Vector2 lhs, Vector2 rhs)
static Vector2 MoveTowards(Vector2 current, Vector2 target, float maxDistanceDelta)
static Vector2 MoveTowards(Vector2 current, Vector2 target, float maxDistanceDelta)
void Normalize()
static Vector2 Normalize(Vector2 value)
static Vector2 Normalize(Vector2 value)
static Vector2 Perpendicular(Vector2 inDirection)
static Vector2 Perpendicular(Vector2 inDirection)
static Vector2 Reflect(Vector2 inDirection, Vector2 inNormal)
static Vector2 Reflect(Vector2 inDirection, Vector2 inNormal)
void Scale(Vector2 scale)
static Vector2 Scale(Vector2 a, Vector2 b)
void Scale(Vector2 scale)
static Vector2 Scale(Vector2 a, Vector2 b)
void Set(float newX, float newY)
static float SignedAngle(Vector2 from, Vector2 to)
static float SignedAngle(Vector2 from, Vector2 to)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime, float maxSpeed)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime, float maxSpeed)
static Vector2 SmoothDamp(Vector2 current, Vector2 target, Vector2 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
float SqrMagnitude()
static float SqrMagnitude(Vector2 a)
static float SqrMagnitude(Vector2 a)

Operators and conversions: 12 available.

Vector3#

UnityEngine.Vector3 import

Vector3 properties#

float this[] { get; set; }
static Vector3 back { get; }
static Vector3 down { get; }
static Vector3 forward { get; }
static Vector3 left { get; }
float magnitude { get; }
static Vector3 negativeInfinity { get; }
Vector3 normalized { get; }
static Vector3 one { get; }
static Vector3 positiveInfinity { get; }
static Vector3 right { get; }
float sqrMagnitude { get; }
static Vector3 up { get; }
static Vector3 zero { get; }

Vector3 methods#

static float Angle(Vector3 from, Vector3 to)
static float Angle(Vector3 from, Vector3 to)
static Vector3 ClampMagnitude(Vector3 vector, float maxLength)
static Vector3 ClampMagnitude(Vector3 vector, float maxLength)
static Vector3 Cross(Vector3 lhs, Vector3 rhs)
static Vector3 Cross(Vector3 lhs, Vector3 rhs)
static float Distance(Vector3 a, Vector3 b)
static float Distance(Vector3 a, Vector3 b)
static float Dot(Vector3 lhs, Vector3 rhs)
static float Dot(Vector3 lhs, Vector3 rhs)
static Vector3 Lerp(Vector3 a, Vector3 b, float t)
static Vector3 Lerp(Vector3 a, Vector3 b, float t)
static Vector3 LerpUnclamped(Vector3 a, Vector3 b, float t)
static Vector3 LerpUnclamped(Vector3 a, Vector3 b, float t)
static float Magnitude(Vector3 vector)
static float Magnitude(Vector3 vector)
static Vector3 Max(Vector3 lhs, Vector3 rhs)
static Vector3 Max(Vector3 lhs, Vector3 rhs)
static Vector3 Min(Vector3 lhs, Vector3 rhs)
static Vector3 Min(Vector3 lhs, Vector3 rhs)
static Vector3 MoveTowards(Vector3 current, Vector3 target, float maxDistanceDelta)
static Vector3 MoveTowards(Vector3 current, Vector3 target, float maxDistanceDelta)
void Normalize()
static Vector3 Normalize(Vector3 value)
static Vector3 Normalize(Vector3 value)
static void OrthoNormalize(Vector3 normal, Vector3 tangent)
static void OrthoNormalize(Vector3 normal, Vector3 tangent, Vector3 binormal)
static Vector3 Project(Vector3 vector, Vector3 onNormal)
static Vector3 Project(Vector3 vector, Vector3 onNormal)
static Vector3 ProjectOnPlane(Vector3 vector, Vector3 planeNormal)
static Vector3 ProjectOnPlane(Vector3 vector, Vector3 planeNormal)
static Vector3 Reflect(Vector3 inDirection, Vector3 inNormal)
static Vector3 Reflect(Vector3 inDirection, Vector3 inNormal)
static Vector3 RotateTowards(Vector3 current, Vector3 target, float maxRadiansDelta, float maxMagnitudeDelta)
static Vector3 RotateTowards(Vector3 current, Vector3 target, float maxRadiansDelta, float maxMagnitudeDelta)
void Scale(Vector3 scale)
static Vector3 Scale(Vector3 a, Vector3 b)
void Scale(Vector3 scale)
static Vector3 Scale(Vector3 a, Vector3 b)
void Set(float newX, float newY, float newZ)
static float SignedAngle(Vector3 from, Vector3 to, Vector3 axis)
static float SignedAngle(Vector3 from, Vector3 to, Vector3 axis)
static Vector3 Slerp(Vector3 a, Vector3 b, float t)
static Vector3 Slerp(Vector3 a, Vector3 b, float t)
static Vector3 SlerpUnclamped(Vector3 a, Vector3 b, float t)
static Vector3 SlerpUnclamped(Vector3 a, Vector3 b, float t)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime, float maxSpeed)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime, float maxSpeed)
static Vector3 SmoothDamp(Vector3 current, Vector3 target, Vector3 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
static float SqrMagnitude(Vector3 vector)
static float SqrMagnitude(Vector3 vector)

Operators and conversions: 8 available.

Vector4#

UnityEngine.Vector4 import

Vector4 properties#

float this[] { get; set; }
float magnitude { get; }
static Vector4 negativeInfinity { get; }
Vector4 normalized { get; }
static Vector4 one { get; }
static Vector4 positiveInfinity { get; }
float sqrMagnitude { get; }
static Vector4 zero { get; }

Vector4 methods#

static float Distance(Vector4 a, Vector4 b)
static float Distance(Vector4 a, Vector4 b)
static float Dot(Vector4 a, Vector4 b)
static float Dot(Vector4 a, Vector4 b)
static Vector4 Lerp(Vector4 a, Vector4 b, float t)
static Vector4 Lerp(Vector4 a, Vector4 b, float t)
static Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t)
static Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t)
static float Magnitude(Vector4 a)
static float Magnitude(Vector4 a)
static Vector4 Max(Vector4 lhs, Vector4 rhs)
static Vector4 Max(Vector4 lhs, Vector4 rhs)
static Vector4 Min(Vector4 lhs, Vector4 rhs)
static Vector4 Min(Vector4 lhs, Vector4 rhs)
static Vector4 MoveTowards(Vector4 current, Vector4 target, float maxDistanceDelta)
static Vector4 MoveTowards(Vector4 current, Vector4 target, float maxDistanceDelta)
void Normalize()
static Vector4 Normalize(Vector4 a)
static Vector4 Normalize(Vector4 a)
static Vector4 Project(Vector4 a, Vector4 b)
static Vector4 Project(Vector4 a, Vector4 b)
void Scale(Vector4 scale)
static Vector4 Scale(Vector4 a, Vector4 b)
void Scale(Vector4 scale)
static Vector4 Scale(Vector4 a, Vector4 b)
void Set(float newX, float newY, float newZ, float newW)
float SqrMagnitude()
static float SqrMagnitude(Vector4 a)
static float SqrMagnitude(Vector4 a)

Operators and conversions: 12 available.