© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
35 replies
MechWarrior99

How to safely access parameters from Task (Porting from Unity IJob)

I am making a program for generating a 3D mesh from parameters.
The generation is done in some Tasks run with
Task.Run
Task.Run
. I'm struggling to grasp how to properly and safely access the parameters when generating.

I am porting the system over from Unity's IJob system, which I think is sort of 'boxing' my thinking in making it hard to get my head around what I need to do.

Do I make a class/struct that has all the parameters in it that I populate beforehand and use those values during generation? Sort of like Unity's Job system.

Thanks 🙂
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Access things from different scene in Unity
C#CC# / help
3y ago
❔ How to create class like MonoBehaviour from Unity
C#CC# / help
3y ago
❔ How to access variable from AccessibilityObject ?
C#CC# / help
3y ago