[3.10.5-beta.2] SDK_310_OR_NEWER isnt a valid flag in SDK 3.10 betas
mjcox24
Using "#if SDK_310_OR_NEWER" in either beta causes the code within it to be skipped.
According to the change-log:
"UdonSharp scripts can now use Assembly Version Defines in their code.
For example, you can detect if the current VRC SDK is version 3.10 or newer by using 3.10 as the Version Define Expression in your Assembly Definition file. This then allows you to gate code with an #if condition like #if SDK_310_OR_NEWER at compile-time."
I might be reading the change-log wrong, but I assumed "SDK_310_OR_NEWER" would be a pre-defined flag. That they would add one of these each update. so once 3.11 comes out you could use SDK_311_OR_NEWER for features exclusive to that.
Log In
mjcox24
This was a miss-read of what that meant.
The current solution is you need to make an ASMDef yourself, referencing the VRC-World SDK and define it yourself.
I feel like this one should be a built-in though.