playMaker

Author Topic: Scale object thanks to an input field value  (Read 773 times)

Linae

  • Playmaker Newbie
  • *
  • Posts: 1
Scale object thanks to an input field value
« on: July 18, 2019, 11:07:59 AM »
Hi everyone,

I feel a bit ashamed because I know that my question is so basic that I can't even find a topic on it.

Indeed, I'm a beginner and I use Playmaker for the first time because I can't code.

I have created a cube and an input field and I would like to scale the cube on X axis according to the input value.

I have added a Set Scale on my cube and I understand that I'll need variables to achieve this but I don't know how to get the value of the input field to store it and use it.
For now, I only have created a local variable (Int) and I don't know what to do next.

There are the Get FSM Variable and Set FSM Variable but I couldn't do anything with it.

Could you me, please?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Scale object thanks to an input field value
« Reply #1 on: July 18, 2019, 11:46:40 AM »
Hi.
with "Ui Input Field Get Text" you can get the current text placed.
Then you can convert to float and use that to set scale.