Skip to content

fix enum cast#153

Closed
ureishi wants to merge 1 commit intovrchat-community:masterfrom
ureishi:fix-enum
Closed

fix enum cast#153
ureishi wants to merge 1 commit intovrchat-community:masterfrom
ureishi:fix-enum

Conversation

@ureishi
Copy link
Copy Markdown

@ureishi ureishi commented Dec 25, 2023

The following cast from integer 3 to TextureWrapMode will compile, but will result in an error at runtime.

code:

TextureWrapMode mode = (TextureWrapMode)3;

result:
Udon runtime exception detected!
An exception occurred during EXTERN to 'SystemObjectArray.__Get__SystemInt32__SystemObject'.
Parameter Addresses: 0x00000005, 0x00000004, 0x00000007

@ureishi ureishi closed this Apr 15, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant