Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: velketor on September 05, 2020, 09:36:03 PM

Title: Remove deleted globals
Post by: velketor on September 05, 2020, 09:36:03 PM
Hello,

How can I remove these extra spaces from my deleted globals?  They are starting to cramp up my workspace and I'm worried they will eventually be so far off the screen that I won't be able to access them.  See screenshot below:
(https://i.imgur.com/M7hfYsI.jpg)

Yes I know using Globals is frowned upon, but it's how I prefer to work.  I'm hoping there is a solution regardless.  Thank you!
Title: Re: Remove deleted globals
Post by: velketor on September 07, 2020, 03:11:55 PM
I figured it out!  I opened my PlayMakerGlobals.asset with Notepad++ and removed all the deleted (empty) Global Variables, re-saved the PlayMakerGlobals.asset, closed Unity and re-opened it.  Boom, all the deleted Globals are finally DELETED =)

Just thought I'd share for those who ran into the same problem.

Thanks!
Title: Re: Remove deleted globals
Post by: djaydino on September 07, 2020, 03:18:16 PM
Hi.
Thx for sharing a solution.

How can you see if its a deleted one?
Title: Re: Remove deleted globals
Post by: velketor on September 07, 2020, 03:50:13 PM
(https://i.imgur.com/wia73J3.png)

Find all of the variables in your PlayMakerGlobals.asset that say useVariable: 1 and have no name and delete them

Make sure to delete all 6 lines for each variable.  These are the deleted Globals that have to be manually deleted in order to be removed in PlayMaker's GUI.