M
M
Mimocodil2021-10-27 07:18:52
Unity
Mimocodil, 2021-10-27 07:18:52

How to set -infinity and +infinity to object variable constraints?

Using [Range(from, to)], you can limit the values ​​of a variable between from and to values. But in some components, such as CharacterController/Height or CharacterController/Radius, there are fields that are limited to one value, not two. How to specify such a limit?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nekit Medvedev, 2021-10-28
@Ezekiel4

you can set a boundary value for this type of variable (more or less, you still can't).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question