D
D
Dealer17082021-11-19 13:39:10
Unity
Dealer1708, 2021-11-19 13:39:10

How to change Pos x and Pos y parameters in RectTransform in Unity2D?

How to change Pos x and Pos y parameters in RectTransform in Unity2D?

It is necessary to change the values ​​of pos x and pos y in the Update method so that they are equal to 0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Farawa, 2021-11-19
@Dealer1708

(transform as recttransform).anchoredposition = vector3.zero;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question