“объект единства на положение мыши” Ответ

Unity получить позицию мыши

Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Troubled Toad

Как найти единство позиции мыши

Vector2 mousePosition = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
Ugly Unicorn

объект единства на положение мыши

//In 2d/UI you can move the object to your mouse position by writing this in a script and then adding it to the object you want to be at the mouse position also put it in the void update spot
transform.position = Input.mousePosition;

//or in 3d
transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition)
Levi Bills

Ответы похожие на “объект единства на положение мыши”

Вопросы похожие на “объект единства на положение мыши”

Смотреть популярные ответы по языку

Смотреть другие языки программирования