Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Skermunkel on January 29, 2018, 06:54:52 AM

Title: [PS4] Cannot convert type PlayMakerGUI to Behaviour... [SOLVED]
Post by: Skermunkel on January 29, 2018, 06: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.
Title: Re: [PS4] Cannot convert type PlayMakerGUI to Behaviour via a built-in conversion
Post by: Alex Chouls on January 29, 2018, 11:44:01 AM
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.
Title: Re: [PS4] Cannot convert type PlayMakerGUI to Behaviour via a built-in conversion
Post by: Skermunkel on January 29, 2018, 12:30:38 PM
Awesome thank so much for the quick reply Alex, that fixed it! :)