This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
Directly accessing Length on Array Properties causes U# compiler error #124
Labels
bug
Something isn't working
Milestone
Trying to call
Length
on a Property that returns an Array of a user-definedUdonSharpBehaviour
type gives a U# compiler errorSystem.Exception: Method <<<TypeNameHere>>>Array.__get_Length__SystemInt32 is not exposed in Udon
, even though usingLength
on a regular array of that type works fine.Example code:
In the above code, calling
Test.Length
will cause the previously mentioned U# compiler error. Meanwhile, calling_test.Length
works as expected.You can actually cache the resulting value of
Test
into another variable and then callLength
on that variable with no issue. for example the following operation is valid:This shows that the issue only arises when calling
Length
directly off of the original property.The text was updated successfully, but these errors were encountered: