hard20 pts · first answer countsmultithreadingunity
Using transform in Task.Run
Code inside Task.Run sets transform.position and throws "can only be called from the main thread". What is the right approach?
Discussion 0
Join free to post in the discussion.
Related questions
- Frame-rate independent movementGame Developer
- Where to apply physics forcesGame Developer
- Value returned by LerpGame Developer
- Awake or Start firstGame Developer
- What a prefab isGame Developer
- Waiting two seconds in a coroutineGame Developer
- GetComponent every frameGame Developer
- Local vs world positionGame Developer