S
S
Semyon Bazhanov2020-07-02 16:12:16
C++ / C#
Semyon Bazhanov, 2020-07-02 16:12:16

Unity - how to make a button (as an object, not a GUI)?

How to make a button, and then from the GUI the button changes its position at different resolutions of the phone, and even the anchor does not save, what should I do? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zZaKko, 2020-07-02
@mamora_sema

There is a built-in OnMouseUp() method. It works if the object has a collider and a rigidbody (If I'm not mistaken).

A
Almost, 2020-07-02
@Almost

Understand how the UI works and not make the button as an object.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question