Question by
iscortulot · Mar 24, 2016 at 08:43 PM ·
javascriptjavascript-specificc# to javascript
[SerializeField][Range(0.1F, 100.0F)] public float speed;
i would like tranlate in javascript for having a slider in inspector
Comment
Answer by lassade · Mar 24, 2016 at 09:08 PM
In javascript`@HideInInspector` is equal to [HideInInspector] in C# so just do`@Range(0.1F, 100.0F)` the`@SerializeField` is not needed because unity alread serializes public variables.