-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
math functions conflicts with types #190
Comments
Same goes for, for instance, |
Yeah, it's an unfortunate mistake we made a long time ago. I plan to fix this in the future when we can do a major API breaking change. |
Is the mistake using static methods to avoid the new keyword? |
Basically, yes. The intent was to be able to be as close to hlsl syntax as possible so you wouldn't have to insert |
Are there any news on this? |
using static Unity.Mathematics.math; will cause conflicts with types like float3 type, preventing you from using float3.zero ('math.float3(float, float, float)' is a method, which is not valid in the given context)
naming of those functions should be reconsidered
The text was updated successfully, but these errors were encountered: