Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityException: SetFloatImpl can only be called from the main thread. #39

Open
Afterlife301209 opened this issue Feb 12, 2022 · 2 comments

Comments

@Afterlife301209
Copy link

I am getting this error AND I TRIED EVERYTHING TO FIX IT : UnityException: SetFloatImpl can only be called from the main thread.

@LarsThePenguin
Copy link

I have the same problem

@mattsteffey
Copy link

In MapGenerator, copy this line:
textureData.UpdateMeshHeights(terrainMaterial, terrainData.minHeight, terrainData.maxHeight);

And then delete it.
Paste it as the first line in the existing DrawMapInEditor() and also create a private void Awake() and put it there as well.
Should fix you right up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants