Search Unity

simple minmax slider

Discussion in 'Immediate Mode GUI (IMGUI)' started by smetzzz, May 14, 2015.

  1. smetzzz

    smetzzz

    Joined:
    Mar 24, 2014
    Posts:
    145
    Hi, I have been trying to wrap around how to get a simple MinMax Slider into the inspector. How is one to do this in JS? I can't seem to implement a property drawer. I was able to write a custom editor with sliders but can't connect the variables to my inspector. Any help to guide me in the right direction would be great. Thanks.
     
  2. smetzzz

    smetzzz

    Joined:
    Mar 24, 2014
    Posts:
    145
    rakkarage likes this.
  3. BMayne

    BMayne

    Joined:
    Aug 4, 2014
    Posts:
    186
    Hey there,

    You can make your own Attribute and a Property Drawer. That way you can put a slider above anything.
     
    smetzzz likes this.