Unity Visual Scripting Group Node Boxes Disappear after running app in Unity

Unity 2021.2.2f
Visual Scripting 1.7.6

With reference to the attached video.
Every time I play the App and stop it the Visual Scripting Group boxes disappear.
To get it back I have to Change the Unity theme or restart Unity.

Does anyone else get this issue?

7662358–956305–unity groupbox disapear.zip (563 KB)

1 Like

Anywhere else I can ask about this? It drives me crazy

1 Like

I Updated Unity to 2021.2.3f, Visual Scripting 1.7.6 and still have the same problem

1 Like

file a bug? I get the same issue.

1 Like

You can try this workaround for now. Add it to a gameobject in scene and select bool to reload scripts on exit play mode.

7676230–959224–ReloadScripts.cs (301 Bytes)

3 Likes

Already reported… Thanks for letting me know I’m not alone in the universe

Thanks will surely give it a go because I’m stuck as it is anyhow :wink:

Thanks your script works perfectly for me for now. :wink:

1 Like

Follow this bug on the Issue tracker

Seems to have more issues. After I implemented the workaround I noticed the inflow and outflow port also dissapears. Not that serious but does look a bit odd though. See attached image with red circles to show where there should be visual indicators for a in/out flow port.

Do you get any warnings coming up?

Good day, my friend… I added some extra info on the issue tracker. There were some warnings, none of which I recorded properly. I also tried to reproduce but could not. I do however get regular warnings that I cannot seem to hunt down though.

Example: (I get x1 when I run and x1 when I stop, ie. same warning twice)

Font not found for path:
UnityEngine.UIElements.VisualElement:UpdateInlineRule (UnityEngine.UIElements.StyleSheet,UnityEngine.UIElements.StyleRule)
Unity.UI.Builder.VisualTreeAssetLinkedCloneTree:CloneSetupRecursively (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElementAsset,System.Collections.Generic.Dictionary2<int, System.Collections.Generic.List1<UnityEngine.UIElements.VisualElementAsset>>,UnityEngine.UIElements.CreationContext)
Unity.UI.Builder.VisualTreeAssetLinkedCloneTree:CloneSetupRecursively (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElementAsset,System.Collections.Generic.Dictionary2<int, System.Collections.Generic.List1<UnityEngine.UIElements.VisualElementAsset>>,UnityEngine.UIElements.CreationContext)
Unity.UI.Builder.VisualTreeAssetLinkedCloneTree:CloneTree (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElement,System.Collections.Generic.Dictionary2<string, UnityEngine.UIElements.VisualElement>,System.Collections.Generic.List1<UnityEngine.UIElements.TemplateAsset/AttributeOverride>)
Unity.UI.Builder.VisualTreeAssetLinkedCloneTree:CloneTree (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.VisualTreeAssetExtensions:LinkedCloneTree (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.BuilderDocumentOpenUXML:ReloadDocumentHierarchyToCanvas (UnityEngine.UIElements.VisualTreeAsset,UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.BuilderDocumentOpenUXML:ReloadChildToCanvas (Unity.UI.Builder.BuilderDocumentOpenUXML,UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.BuilderDocumentOpenUXML:ReloadDocumentToCanvas (UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.BuilderDocumentOpenUXML:OnAfterBuilderDeserialize (UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.BuilderDocument:OnAfterBuilderDeserialize (UnityEngine.UIElements.VisualElement)
Unity.UI.Builder.Builder:OnEnableAfterAllSerialization ()
Unity.UI.Builder.Builder:CreateUI ()
Unity.UI.Builder.BuilderPaneWindow:CreateUIInternal ()
Unity.UI.Builder.BuilderPaneWindow:OnEnable ()
Unity.UI.Builder.Builder:OnEnable ()

Good thing you asked, lol. Found the source of the warning. I had some UI Builder “stuff” that is not used that caused the warning.

Has someone tried with a newer version?

Current 2021.2.5

I don’t believe it has been fixed yet

Thank you, I will wait until someone fix it, meanwhile, keep using Playmaker :frowning:

@VRGameDev just add this script to an empty GameObject and it will fix the issue for the time being

#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

public class ReloadScripts : MonoBehaviour
{
    public bool ReloadOnExitPlayMode;

    public void OnDestroy()
    {
        if (ReloadOnExitPlayMode) EditorApplication.delayCall += EditorUtility.RequestScriptReload;
    }
}
#endif

Say thanks to @Trindenberg

1 Like

Thank you,

It was really really annoying

1 Like

Yes, I have same issue. Also am sometimes unable to group nodes.
Good to know others are having similar issues.

Yes, I’m having the same problem and it’s greatly reducing my productivity. I am using the latest version of 2021. this problem is not fixed.