Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: serenefox on May 15, 2015, 05:35:10 AM

Title: Call Method Layer Mask Parameter
Post by: serenefox on May 15, 2015, 05:35:10 AM
Hello,

I was wondering if there was any way to get an object variable to be of the type "Layermask". I am using Call Method and one of the parameters on the script is Layermask but i can't seem to find it on the drop down list. I attached an image hopefully it can explain what I am going for.

Thanks!
Title: Re: Call Method Layer Mask Parameter
Post by: Lane on May 15, 2015, 09:39:59 AM
Layers are actually defined as integers, it can be very confusing if you're accustomed to the fancy dropdowns that are made in custom inspectors.

I don't think there is a simple way to fix the drop-down in this case, so you may be stuck with integers here unless someone corrects me on this.
Title: Re: Call Method Layer Mask Parameter
Post by: serenefox on May 15, 2015, 02:11:48 PM
Thanks for the reply Lane.

Yeah for what I am doing I need a Layermask parameter. If all else fails I guess I could try to write my player controls in c# without playmaker. If there is a way to do this with playmaker I would still like to know though.