Answer the question
In order to leave comments, you need to log in
How to solve spawn problem in unity3d?
Hello everyone, I ran into a problem when spawning houses, on the one hand it spawns normally, on the other hand, they are rotated, I tried to change the rotation of the prefab, nothing helped, so I changed it, it doesn’t work either. Please help me how to change the position?
Answer the question
In order to leave comments, you need to log in
When you call Instantiate , you specify the position and rotation, of course, the rotation from the prefab is ignored for you. Either bring the rotation parameter into the ObjectSpawner inspector and use it when instantiating, or rewrite the generator so that it immediately spawns houses on both sides of the street.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question