Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Athin on February 24, 2019, 02:22:50 AM

Title: Playmaker loses focus when editing FSM
Post by: Athin on February 24, 2019, 02:22:50 AM
Hey guys,

I've updated to Unity 2018.3.2f1 and just did a new playmaker install as well on my old project.  Now with the new prefab system, any time I try to edit a string in the FSM's, it tends to de-focus after I type in 1 or 2 letters.  Renaming the FSM for Ex will cause this. 

If I drag it into the scene, I can edit the instance and drag it back into prefab but now I get a warning for every change I make in the game object.  Its getting really bulky trying to do anything in this system.

Is anyone else having similar problems or know a way to fix this?

Thanks
Title: Re: Playmaker loses focus when editing FSM
Post by: ch1ky3n on February 24, 2019, 06:41:17 AM
Yup, it has been plaguing me as well, especially when editing prefab. I'm not sure if it is a playmaker bug though. It also happened to me when editing collider size, transform, etc. Try to:

Restarting Unity or
Go to play mode, and edit the FSM during the play mode then stop it. Sometimes the bugs are gone by itself

Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on February 24, 2019, 06:46:52 AM
Funny you say that as this issue has just....disappeared.  Was just trying to work through it with Copy and paste to kinda side step it. When I forgot to do that and just tried to rename a state, it worked fine.  Issue seems to be gone for now for whatever reason but I fear it may return once I start up again tomorrow.  Would still like to know a fix for this if/when it comes back.

Thanks
Title: Re: Playmaker loses focus when editing FSM
Post by: ch1ky3n on February 24, 2019, 06:59:56 AM
trust me
I can hear it says "I'll be back!"
Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on February 26, 2019, 09:53:29 PM
Has anyone else experience this or better yet knows a fix?  Issue keep appearing and its a huge pain to work around currently.

Any help would be greatly appreciated!

Thanks
Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on March 17, 2019, 07:14:07 AM
Going to give this one a bumb as this problem seems to be getting worst and I can't find a solution.

I've been typing in the FSM descriptions to then copy and paste it into the FSM name for a quick go around but now suddenly that isn't working anymore.  Again it seems like I can type in 1-2 letters before Unity acts like I clicked off of it.  I've tried updating and new projects but nothing helped. 

Has anyone else experience this or found a fix for it?
Title: Re: Playmaker loses focus when editing FSM
Post by: djaydino on March 17, 2019, 12:09:23 PM
Hi.
What PlayMaker version are you using?
i believe the current last version is 1.9.0v12
Title: Re: Playmaker loses focus when editing FSM
Post by: Alex Chouls on March 17, 2019, 01:20:19 PM
Generally, focus problems are caused by another editor window pulling focus to itself. Try resetting the layout, see if that fixes the issue, then add windows back into the layout until it breaks. I seem to remember the Global Variables window causing focus problems, but I thought we fixed that issue... I'll investigate.
Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on March 17, 2019, 06:38:09 PM
Hey guys,

Thakns for the response. I'm not sure the exact version I got (Currently at work) but would be pretty up to date as I've only updated it last week.

I'll try to close some of my editor windows down and narrow it down to which one (If thats the issue)  I do have the global one open and tend to have a ton of windows in general open too.  Next time I sit down on it, I'll see if that helps.

Thanks guys.
Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on March 23, 2019, 06:19:35 AM
Just replying for others to see since I saw others had this issue.

This was 100% caused by the Global Variable Window.  As soon as I close that tab, it went away and never lost focus. Tried a few other windows and re-opening the global window for testing and can confirm.  If anyone has this issue then close the Global Variable window.

Playmaker Version - 1.9.0
Unity Version - 5.5.1f1
Title: Re: Playmaker loses focus when editing FSM
Post by: djaydino on March 23, 2019, 10:58:58 AM
Hi.
You can find the exact playmaker version in PlayMaker/Help/About PlayMaker...
 current latest is 1.9.0p13
Title: Re: Playmaker loses focus when editing FSM
Post by: jrDev on July 23, 2019, 12:18:59 AM
Generally, focus problems are caused by another editor window pulling focus to itself. Try resetting the layout, see if that fixes the issue, then add windows back into the layout until it breaks. I seem to remember the Global Variables window causing focus problems, but I thought we fixed that issue... I'll investigate.
Hello,

Has this been looked into? I have v1.9.0 p17 and it still causes this issue.

Thanks,
jrDev
Title: Re: Playmaker loses focus when editing FSM
Post by: TheBadFeeling on July 25, 2019, 07:50:20 PM
Yup, confirming (same version). As soon as the global window is open, focus in text fields is lost after 1 keystroke. It's a pain.  ;)

/Bad
Title: Re: Playmaker loses focus when editing FSM
Post by: Broken Stylus on July 29, 2019, 12:36:48 PM
Hey guys,

I've updated to Unity 2018.3.2f1 and just did a new playmaker install as well on my old project.  Now with the new prefab system, any time I try to edit a string in the FSM's, it tends to de-focus after I type in 1 or 2 letters.  Renaming the FSM for Ex will cause this. 

If I drag it into the scene, I can edit the instance and drag it back into prefab but now I get a warning for every change I make in the game object.  Its getting really bulky trying to do anything in this system.

Is anyone else having similar problems or know a way to fix this?

Thanks

Yes, confirmed, all along 1.8. Haven't moved to 1.9x yet. Can't tell if it's gone.
Heed Athin's solution.
But devs think Globals are hellspawns so who would use them?
Mutiny!
Title: Re: Playmaker loses focus when editing FSM
Post by: dt1000 on August 28, 2019, 10:03:12 AM
I am having this exact issue with Unity 2019.2.0f1 and Playmaker v1.9.0.p18. If you have the Global Variables window open, the title pane for your states will lose focus after a few keystrokes, making it impossible to enter text. Very irritating. Closing the Globals window solves the problem,  but is not really optimal. :(
Title: Re: Playmaker loses focus when editing FSM
Post by: Athin on August 29, 2019, 02:07:30 AM
At the very least, this bug teaches you not to rely on Globals lol. I've started using the meta data system where I just send/grab variables from that instead of global.  Not exactly sure if I'm using it correctly so far but at least its not global focus.
Title: Re: Playmaker loses focus when editing FSM
Post by: SamH on January 05, 2020, 03:51:33 PM
This issue was plaguing me too. Theres another thread which also notes it's caused by the global variables window being open, plus some comments about how they're patching in a fix.  As of Playmaker 1.9.0  (Unity v2019.2.17f1) its still an issue for me though.

https://hutonggames.com/playmakerforum/index.php?topic=12628.msg94495#msg94495
Title: Re: Playmaker loses focus when editing FSM
Post by: Abelius on April 09, 2020, 11:08:01 AM
Yup, it's still happening as of today.

Every time I need to add a global var, I need to open the window, add it, then close after I'm done. :P

I'm starting to think this is some kind of "Easter egg" punishment for using Globals...   ::)
Title: Re: Playmaker loses focus when editing FSM
Post by: djaydino on April 09, 2020, 11:24:14 AM
Hi.
I might be, lol.
You actually should minimize using globals :)

Title: Re: Playmaker loses focus when editing FSM
Post by: Broken Stylus on April 10, 2020, 05:44:01 AM
It would even be better if HG could update the Global var system so it becomes fully operative and as powerful as it could should be. If absolutely all new users intuitively turn to Globals and see it as the equivalent of the prefab system, but for vars, then it must have some very solid value to it after all. Starting with removing that silly bug and allowing them to be renamed easily. Then, to add some level of flexibility, mimic the prefab and variant system in Unity, so for example a given Global var can be used as a "model" and variants will be used for Player 1, Player 2, etc.
Title: Re: Playmaker loses focus when editing FSM
Post by: Gua on November 03, 2020, 12:47:31 AM
Are there any plans to fix this?
Title: Re: Playmaker loses focus when editing FSM
Post by: djaydino on November 03, 2020, 01:46:47 PM
Hi.
Alex should be aware of this bug.
There must be some reason this is not fixed yet.
Title: Re: Playmaker loses focus when editing FSM
Post by: Gua on November 10, 2020, 10:59:55 PM
Maybe someone, some sort of workaround. It is such a pain, to constantly close and open that sub-windows. Maybe it possible to open global variables sub-window using a shortcut?