How to reference to a local variable from a struct
So I want to implement Jobs and Burst into my project, and to do that, I need to have a struct for the job. what do I want the job to do? I want it to generate a world cut up into bits, called chunks. To do that, I need to paste the generating code into the Job's Execute() void. That bit was easy. But the generating code needs two variables that are declared at the top of the class. But the struct won't allow that for some reason, and now I'm stuck.
Any help would be appreciated! And if you need any more info, I can give that!
Your answer
![](https://koobas.hobune.stream/wayback/20220613061608im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Parent Class variable not saving child class 0 Answers
Using variables from another script. 0 Answers
How to track variables by reference.. 0 Answers
Accessing a variable from another script (Bomberman Bomb Limit) 1 Answer
How can you add a function to a variable. Such as string.ToUpper() ? 1 Answer