playMaker

Author Topic: Call Method Layer Mask Parameter  (Read 1774 times)

serenefox

  • Full Member
  • ***
  • Posts: 135
    • Serenefox Games
Call Method Layer Mask Parameter
« 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!
Most Recent Published Games:
Juicy Theater - Android

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Call Method Layer Mask Parameter
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

serenefox

  • Full Member
  • ***
  • Posts: 135
    • Serenefox Games
Re: Call Method Layer Mask Parameter
« Reply #2 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.
Most Recent Published Games:
Juicy Theater - Android