You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug in detail:
When using flags on enums like the camera depth I cannot use the '|' operator to set the flags.
I get an error
An exception occurred during Udon execution, this UdonBehaviour will be halted.
VRC.Udon.VM.UdonVMException: The VM encountered an error!
Exception Message:
An exception occurred during EXTERN to 'UnityEngineCamera.__set_depthTextureMode__UnityEngineDepthTextureMode__SystemVoid'.
Parameter Addresses: 0x00000007, 0x0000000B
Provide steps/code to reproduce the bug:
Make project
Add the following lines of code to a script on the reference camera on Start or OnEnabled
Camera cam = GetComponent();
cam.depthTextureMode = cam.depthTextureMode | DepthTextureMode.Depth;
Press play
Get error
Expected behavior:
It should not error and set the enum accordingly
The text was updated successfully, but these errors were encountered:
Describe the bug in detail:
When using flags on enums like the camera depth I cannot use the '|' operator to set the flags.
I get an error
An exception occurred during Udon execution, this UdonBehaviour will be halted.
VRC.Udon.VM.UdonVMException: The VM encountered an error!
Exception Message:
An exception occurred during EXTERN to 'UnityEngineCamera.__set_depthTextureMode__UnityEngineDepthTextureMode__SystemVoid'.
Parameter Addresses: 0x00000007, 0x0000000B
Provide steps/code to reproduce the bug:
Make project
Add the following lines of code to a script on the reference camera on Start or OnEnabled
Camera cam = GetComponent();
cam.depthTextureMode = cam.depthTextureMode | DepthTextureMode.Depth;
Press play
Get error
Expected behavior:
It should not error and set the enum accordingly
The text was updated successfully, but these errors were encountered: