Y
Y
yraiv2020-06-22 15:37:44
Unity
yraiv, 2020-06-22 15:37:44

How to make an object not change its coordinates after its creation?

I create an object from the prefab, then detach it from the parent, and it changes the coordinates to the initial ones (which are in the prefab). Do I need to write down the coordinates somewhere and then read them out, or is it somehow possible to do this in a normal way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mopsicus, 2020-06-23
@mopsicus

There is localPosition and just position. The first relative to the parent, the second global. And of course, when you change the parent, the local coordinates also change.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question