playMaker

Author Topic: [SOLVED] PlayMakerGUI Make the Garbage in .exe  (Read 425 times)

eotiti

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
[SOLVED] PlayMakerGUI Make the Garbage in .exe
« 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
« Last Edit: January 30, 2019, 02:30:14 PM by eotiti »

eotiti

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
Re: PlayMakerGUI Make the Garbage in .exe
« Reply #1 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

eotiti

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
Re: PlayMakerGUI Make the Garbage in .exe
« Reply #2 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
« Last Edit: January 30, 2019, 12:14:43 PM by eotiti »

eotiti

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
Re: PlayMakerGUI Make the Garbage in .exe
« Reply #3 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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: PlayMakerGUI Make the Garbage in .exe
« Reply #4 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.

eotiti

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
Re: PlayMakerGUI Make the Garbage in .exe
« Reply #5 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.