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
I think C# seems to consider those hard-coded bytes as type Int32 instead of Byte and then auto-cast back to byte while compilication. UdonSharp seems trying to find the constructor Color32(Int32, Int32, Int32, Int32) which does not exist and fails the complication.
Expected behavior:
What was the expected result? To compile
The text was updated successfully, but these errors were encountered:
Known issue that will be fixed eventually, but it's complicated. Using an explicit cast in the constructor like new Color32((byte)0xC0, (byte)0xD6, (byte)0xDF, (byte)0xFF) also works as a workaround.
Describe the bug in detail:
Consider the following code that is expected to compile correctly:
UdonSharp throws the following error stating the constructor cannot be found and fails the compilication:
However, by specifically declaring byte variables and supplying into the constructor, the error no longer exists:
I think C# seems to consider those hard-coded bytes as type Int32 instead of Byte and then auto-cast back to byte while compilication. UdonSharp seems trying to find the constructor
Color32(Int32, Int32, Int32, Int32)
which does not exist and fails the complication.Expected behavior:
What was the expected result? To compile
The text was updated successfully, but these errors were encountered: