• 教程
  • Tips
  • Show public variables as Sliders with [Range(min, max)]

Show public variables as Sliders with [Range(min, max)]

版本检查: 5

-

难度: 新手

Exposing a float variable in the Inspector for tweaking? Add a Range declaration above your variable in your script and you can instantly turn your public variable into a slider.

Show public variables as Sliders with [Range(min, max)]

新手 Tips