JetBrains / JetBrains/resharper-unity

Add ability to auto convert a foreach loop over a query to IJobEntity

Open
#2,485 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Basically add a code action to transform something like:

```cs
foreach(var (RefRO a, RefRW b, Entity entity) in SystemAPI.Query, RefRW>().WithEntityAccess() {
...
}
```

to

```cs
internal partial struct JOB_NAME: IJobEntity {
private void Execute(in ComponentA a, ref ComponentB b, Entity entity) {
...
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.