Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Skermunkel on January 17, 2017, 09:01:14 AM

Title: [Xbox One] Playmaker Global Variables dont work.
Post by: Skermunkel on January 17, 2017, 09:01:14 AM
Hi,

I upgraded to the latest supported Xbox One XDK (August 2016 QFE2) as well as the corresponding supported Unity version (5.5.0p1) but for some reason now none of my Playmaker Global Variables want to work, where it wasnt a problem at all with the previous XDK/Unity version.

Please any help or advice on the matter would be immensely appreciated, I will be posting a thread on the Unity Xbox One forums as well.
Title: Re: [Xbox One] Playmaker Global Variables dont work.
Post by: G-Kaiser on January 17, 2017, 09:24:08 AM
This is just a suggestion, make sure your global variables are in the Resources folder within Playmaker. The folder is Playmaker/Resources. The globals are called PlaymakerGlobals.asset. I had a similar problem upon updating to Unity 5.5. My global variables worked even though they were in wrong folder in older versions of Unity. In Unity 5.5 they must be in the Resources folder.
Title: Re: [Xbox One] Playmaker Global Variables dont work.
Post by: Skermunkel on January 17, 2017, 10:34:31 AM
My Playmaker Globals asset file are placed in the Resources folder inside Plugins/Playmaker/Resources folder but Im not sure if it maybe needs to be placed inside a Resources outside of Plugins.
Title: Re: [Xbox One] Playmaker Global Variables dont work.
Post by: G-Kaiser on January 17, 2017, 10:56:11 AM
The PlaymakerGlobals.asset should be in the Resources Folder in the Playmaker directory. Look in the main Playmaker directory. Assets/Playmaker/Resources
Title: Re: [Xbox One] Playmaker Global Variables dont work.
Post by: Skermunkel on January 17, 2017, 11:20:10 AM
Just managed to fix, i needed to place the PlaymakerGlobals.asset inside preloaded assets inside Player settings.