playMaker

Author Topic: Having trouble setting a Custom Property  (Read 1970 times)

mweyna

  • Full Member
  • ***
  • Posts: 242
Having trouble setting a Custom Property
« on: September 05, 2014, 03:45:47 PM »
When I'm trying to set a custom property on a script, in this case "View Radius in Tiles" the field doesn't seem to come up anywhere. Is there something on the script I need to add so that the "SetProperty" playmaker action will show that value?


cdutoit

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Having trouble setting a Custom Property
« Reply #1 on: September 06, 2014, 07:55:03 PM »
Make sure its public.

Also, I struggled first, not realizing I had to define the variable as type Object and then go and define the actual type, in order for all the properties to show up.

mweyna

  • Full Member
  • ***
  • Posts: 242
Re: Having trouble setting a Custom Property
« Reply #2 on: September 09, 2014, 02:52:29 AM »
So looking at the code, I see this -

Code: [Select]
public byte ViewRadiusInTiles = 5
Does that mean I wouldn't be able to use it as it is a byte and not object?