Reply To: [Feature Request] (Custom Tasks) Easy Drop-down selector for list/arrays

NodeCanvas Forums General Discussion [Feature Request] (Custom Tasks) Easy Drop-down selector for list/arrays Reply To: [Feature Request] (Custom Tasks) Easy Drop-down selector for list/arrays

#8758
Async0x42
Participant

Third request for making tasks! (maybe I should have picked a better thread title)

An attribute to allow us to set a friendly name for a variable in the node view, i.e. instead of ‘scaleZoom’ (variable), it would display ‘Scale (Zoom)’

[Text("Scale (Zoom)", SliderField(0.01f, 2)] public float scaleZoom = 1f;

Basically, the Name attribute that’s already applied to the class name, but for variables.

And lastly…. Have the SliderField accept ints in addition to floats would be good! I very lazily copy/pasted and edited a bit to make an IntSliderField, not exactly refined or anything, I just wanted it quickly working, but I think that’d be a good addition to the base NodeCanvas