Y
Y
yraiv2020-06-20 09:43:16
Unity
yraiv, 2020-06-20 09:43:16

Why is the object created in the wrong place?

I have a prefab and a script that, at the time of the death of the object, will compare another prefab at the place of the prefab, the objects have different positions, I tried to make their position equal to the position of the prefab where they should appear, but they always appear in the same place

public void Death()
    {
        _MS.LvlWave++;
        Instantiate(DropMoney, Spider.transform.position, Quaternion.identity);// DropMoney создаётся не там, где нужно, Spider - местое создания  DropMoney должен быть
        Destroy(gameObject);
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question