-
Notifications
You must be signed in to change notification settings - Fork 131
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
Do not suggest using foreach in Burst compiled jobs #1378
Comments
Yeah. Ideally full support would include showing errors in burst compiled code where such features are used. Other examples:
The full restrictions can be found at https://docs.unity3d.com/Packages/com.unity.burst@1.2/manual/index.html#cnet-language-support. |
Thank you for your feedback. We have big internal task to support Burst compiler Please share any feature requst for Burst support here :) |
Hello @Lattyware and @UnknownSoldier1! Also, there is context action and quick fix to place the If you have further suggestions on what to support at Burst - feel free to post it at YouTrack or add here at repo as an issue. |
@Lattyware I created issues based on your suggestions, it would be great you would provide a code example to support for each suggestion. #1900 #1901 |
#2015 from now foreach is allowed in burst compiled code, closing issue |
Hello,
I've been having this issue that Rider keeps suggesting me to use features in Burst-compiled jobs that are unsupported. The best example is the suggestion to replace a for loop with foreach, which is unsupported by Burst. Another example would be the usage of Linq, which is also unsupported.
So far I've been dealing with this issue by simply adding the Resharper disable comments, but this is something that I think should not be necessary.
Cheers
The text was updated successfully, but these errors were encountered: