N
N
nedo_progrommist2018-04-06 16:31:53
2D
nedo_progrommist, 2018-04-06 16:31:53

How to increase the collider when clicking on a certain button?

how to increase the collider when clicking on a certain button

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Basmanov, 2018-04-06
@nedo_progrommist

The collider has a bounds property , you can use it to make the collider bigger or smaller. Or you can hang two colliders on the object, and turn on / off the desired one by event.

G
Griboks, 2018-04-07
@Griboks

collider.localScale *= 2;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question