playMaker

Author Topic: Getting public variables from outside Playmaker  (Read 1385 times)

a1laserboy

  • Playmaker Newbie
  • *
  • Posts: 4
Getting public variables from outside Playmaker
« on: August 14, 2018, 03:09:43 PM »
Hi guys,

Is there a way to get a public variable declared outside PM into PM?

Probably the dumbest question in the world, but it has me stumped.

Cheers :)

Doh

  • Full Member
  • ***
  • Posts: 124
Re: Getting public variables from outside Playmaker
« Reply #1 on: August 15, 2018, 05:16:59 AM »
Get Property should be of use to you.

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Getting public variables from outside Playmaker
« Reply #2 on: August 15, 2018, 07:11:57 AM »
And make sure you use linker wizard for builds if you're using get property.
Available for Playmaker work

a1laserboy

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Getting public variables from outside Playmaker
« Reply #3 on: August 15, 2018, 08:49:54 AM »
Thanks Guys, I wasn't seeing the variable using Get Property, perhaps the linker wizard will show it up. I kind of fixed it myself also.

As the variable is public, and as it happens to be getting placed into a text box on UI, I simply attached an FSM to the text box and used UI Text Get Text and put it into a PM global variable.

I'll try out the linker wizard now.