Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mweyna on September 05, 2014, 03:45:47 PM

Title: Having trouble setting a Custom Property
Post by: mweyna 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?

(http://s21.postimg.org/6y1p0vxaf/Options.jpg)
Title: Re: Having trouble setting a Custom Property
Post by: cdutoit 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.
Title: Re: Having trouble setting a Custom Property
Post by: mweyna 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?