Y
Y
yraiv2020-08-23 18:34:02
Unity
yraiv, 2020-08-23 18:34:02

How to take the coordinates of another object in 2d?

I can't google something, share the links. I need to take coordinates from one object and move another object to these coordinates

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-08-23
@GavriKos

Links to the basic lessons of the unit to share?
What exactly is your problem? With getting coordinates or assigning them to the position of another object?
So then:
targetObject.transform.position = sourceObject.transform.position it
remains only to get the objects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question