Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: eotiti on January 30, 2019, 05:42:33 AM

Title: [SOLVED] PlayMakerGUI Make the Garbage in .exe
Post by: eotiti on January 30, 2019, 05:42:33 AM
I use unity 2018.3
Playmaker 1.9.0p6
The object "PlayMakerGUI" create the Garbage when i check profiler
if i remove "PlayMakerGUI" every thing fine
please check the image attach
Title: Re: PlayMakerGUI Make the Garbage in .exe
Post by: eotiti on January 30, 2019, 07:07:08 AM
When play game in editor GarbageCollector not running ... but when build to exe and check Profiler GarbageCollector will Run
Title: Re: PlayMakerGUI Make the Garbage in .exe
Post by: eotiti on January 30, 2019, 11:31:31 AM
Update
in unity 2018 "OnGUI " will be considered garbage
in PlayMakerGUI just turn off "Enable GUILayout " will solve the problem about Garbage
Title: Re: PlayMakerGUI Make the Garbage in .exe
Post by: eotiti on January 30, 2019, 01:13:30 PM
after turn off "Enable GUILayout " will cause an error not automatically send event finish on some stages
Title: Re: PlayMakerGUI Make the Garbage in .exe
Post by: Alex Chouls on January 30, 2019, 01:34:30 PM
Enable GUILayout shouldn't affect event sending, it just sets useGUILayout:
https://docs.unity3d.com/ScriptReference/MonoBehaviour-useGUILayout.html

Are you using any GUILayout actions?

If you're not using any GUI or GUILayout actions you can safely delete PlayMakerGUI. Also, uncheck PlayMaker Editor > Preferences > Auto Add PlayMakerGUI to Scene.

PlayMakerGUI is also currently needed to draw State Labels. We will be transitioning to a new uGUI solution for State Labels and other debug info soon, at which point we'll start phasing out PlayMakerGUI.

I'll add more info about PlayMakerGUI to the docs.
Title: Re: PlayMakerGUI Make the Garbage in .exe
Post by: eotiti on January 30, 2019, 02:29:44 PM
Thank Alex !
I am still struggling with unity 2018 if I find anything new and conflict with playmaker I will post on the forum.