Im trying to comprehend a bit more how to convert some tasks into more performant ones with jobs & burst but i'm having troubles understanding how a task that typically uses a custom class/struct for data handling would work with it.
To be more specific, in one simple example we have 2 classes, and 1 function (Im only using this as an example, not a real world application and just trying to understand more).
class MyCustomData
{
List<OtherCustomData> MyData;
}```
```cs
class OtherCustomData
{
Vector3 SomePosition;
Float SomeValue;
}
void DoSomething()
{
//Assuming its not empty for simplicity
float testFloat = MyCustomDataInstance.MyData[0];
For(int i = 1; i < MyValues.Count; i++) { testFloat *= MyCustomDataInstance.MyData[i] }
}```
How would you convert it?