Notes on Return Types
This page refers to functions like:
- sdk.call_native_func
- sdk.call_object_func
- sdk.get_native_field
- REManagedObject:call
- REManagedObject:get_field
These functions have auto conversions for some types:
System.String- Gets converted to a normal lua string
System.Int,System.UInt,System.Boolean,System.Singletypes- Gets converted to native lua equivalents
via.vec2,via.vec3,via.vec4via.mat4- Gets converted to Matrix4x4f
via.quat- Gets converted to Quaternion
System.SByte,System.Byte,System.Int16,System.UInt16,System.Int32,System.UInt32,System.Int64,System.UInt64- Gets converted to native Lua number
System.Double- Gets converted to native Lua number (float)