ParelVRDocs
Player site

Scripting / Reference

Contract

Types in the ParelVR.Volt.Contract namespace.

VoltCompilerServices#

ParelVR.Volt.Contract.VoltCompilerServices static

Helpers the VoltCS compiler calls for language features that need the runtime. Scripts never name these; the compiler emits them, and they are part of the API contract like everything else a module can call.

Methods#

static object BoxEnum(int value)

An enum value passed as an object: it keeps its number and remembers which enum it belongs to.

static string EnumName(int value)

The name of an enum value, or its number when the value has no name.