playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Having trouble setting a Custom Property
« previous
next »
Print
Pages: [
1
]
Go Down
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?
Logged
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.
Logged
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?
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Having trouble setting a Custom Property