playMaker

Author Topic: Range Slider of Float Variable using Editor Windows?[SOLVED]  (Read 1175 times)

rechronicle

  • Full Member
  • ***
  • Posts: 119
  • Mystvaldia
    • Indie RPG Creator
Range Slider of Float Variable using Editor Windows?[SOLVED]
« on: November 27, 2019, 08:51:55 AM »
Hello,
is it possible to turn the float variable into a slider? (See attachment.)
I had already searched the web but found nothing relative to that, only in-game UI slider. It might be cool sometimes to just having a desired value within the float variable range.
Any ideas?

I hope I'm not missing out on any feature if this was already implemented.


Thank you!
« Last Edit: January 07, 2020, 05:20:37 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Range Slider of Float Variable using Editor Windows?
« Reply #1 on: December 27, 2019, 05:25:45 AM »
Hi,

 yes: add the attribute HadFloatSlider to your fsmFloat

Code: [Select]
[HasFloatSlider(0f,1f)]
public FsmFloat value;

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Range Slider of Float Variable using Editor Windows?
« Reply #2 on: December 30, 2019, 12:28:00 AM »
Hi.

Here is a link to the API Reference it can be very useful :)