S
S
Slavik Oleksiuk2017-01-29 15:35:49
Android
Slavik Oleksiuk, 2017-01-29 15:35:49

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?db4bae8dd7074a51992921b5a84ce47c.jpga43a2881fcc54a8280cf1d095cae4b47.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2017-01-29
@my_england_id

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 question

Ask a Question

731 491 924 answers to any question