playMaker

Author Topic: [PS4] Cannot convert type PlayMakerGUI to Behaviour... [SOLVED]  (Read 783 times)

SkobbejakGames

  • Playmaker Newbie
  • *
  • Posts: 36
    • View Profile
[PS4] Cannot convert type PlayMakerGUI to Behaviour... [SOLVED]
« on: January 29, 2018, 04:54:52 AM »
Hi,

We are busy with our first PS4 title and after gaining access to the Unity license and our dev kits and having everything setup I switched to PS4 and noticed that I get the following compiling error from the PlayMakerGUIInspector.cs script:

Assets/PlayMaker/Editor/PlayMakerGUIInspector.cs(112,46): error CS0039: Cannot convert type `PlayMakerGUI' to `Behaviour' via a built-in conversion

which is caused by the following line:

var behavior = (PlayMakerGUI)component as Behaviour;

I am running Unity 5.6.4p4 and Playmaker 1.8.9 (was on 1.8.4 at first and updated to 1.8.6 and then 1.8.9 to check if it might be fixed).

Does anyone have any idea what might be causing this issue, please any help on the matter would be greatly appreciated.
« Last Edit: January 29, 2018, 01:22:14 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3639
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Hi, try replacing the line with:
Code: [Select]
var behavior = (PlayMakerGUI)component;
Not sure why it would fail on PS4, but the code is a little messy. I'll clean it up for the next update.

SkobbejakGames

  • Playmaker Newbie
  • *
  • Posts: 36
    • View Profile
Awesome thank so much for the quick reply Alex, that fixed it! :)