F
F
flanyaa2021-06-09 16:34:21
C++ / C#
flanyaa, 2021-06-09 16:34:21

How to transfer an object from a unit to a specific coordinate y in c#?

For example, I need the "OnClickShopButton" object to move to 3 along the Y axis after clicking on the button

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kachan, 2021-06-09
@MANAB

gameobject.transform.position += new Vector3(0, 3, 0);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question