Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Unity 2020.2.0a19 broke visual effect graph

Discussion in 'Visual Effect Graph' started by b4gn0, Aug 6, 2020.

  1. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Unity: 2020.2.0a19
    URP: 8.2.0
    UI Toolkit: 1.0.0-preview.6

    If I try to open a *.vfx file, the visual effect graph editor does not load the file and suggests me to create a new one.


    Also, a Windows popup appears asking me to choose an application to use to open the file:


    In the console, this error appears:
    MissingFieldException: Field 'UnityEngine.UIElements.VisualElement.isBoundingBoxDirty' not found.
    UnityEditor.Experimental.GraphView.Scope.UpdateGeometryFromContent () (at <5b91b818930242e2a5b3695c18f530f5>:0)
    UnityEditor.Experimental.GraphView.Scope.<ScheduleUpdateGeometryFromContent>b__38_0 (UnityEngine.UIElements.TimerState t) (at <5b91b818930242e2a5b3695c18f530f5>:0)
    UnityEngine.UIElements.VisualElement+TimerStateScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at Library/PackageCache/com.unity.ui@1.0.0-preview.6/Core/VisualElementScheduler.cs:324)
    UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at Library/PackageCache/com.unity.ui@1.0.0-preview.6/Core/Scheduler.cs:360)
    UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at Library/PackageCache/com.unity.ui@1.0.0-preview.6/Core/UIElementsUtility.cs:254)
    UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at Library/PackageCache/com.unity.ui@1.0.0-preview.6/Core/UIElementsUtility.cs:105)
    UnityEditor.RetainedMode.UpdateSchedulers () (at Library/PackageCache/com.unity.ui@1.0.0-preview.6/Editor/RetainedMode.cs:50)
     
  2. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Selection Groups seem to be the culprit:







    I don't know which forum is best for this kind of bug, as soon as I know more I will cross reference Unity's answer on this.
     
  3. Siiseli92

    Siiseli92

    Joined:
    Nov 16, 2016
    Posts:
    6
    Same thing happened to me, on Version: 2020.1.1f1.4277 with HDRP and UI builder. Any updates on fixing this?
     
  4. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Yes, it has been fixed in an editor update (don't know which version for 2020.1), although it hasn't been mentioned in the changelogs.
     
  5. Siiseli92

    Siiseli92

    Joined:
    Nov 16, 2016
    Posts:
    6
    Thanks a bunch. I'll try to download 2020.2 beta and see if that helps.
     
  6. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    I'd try the latest 2020.1 if I were you, the latest betas introduced some nasty bugs that are being solved right now
     
  7. Rob-A

    Rob-A

    Joined:
    Aug 7, 2012
    Posts:
    33
    I can confirm this with 2020.1.16f and UI Toolkit: 1.0.0-preview.9

    removing UI Toolkit restores a working state.
     
  8. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    328
    I'll send this post over to the team for you!
     
  9. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    To chime in, there was an issue going to 2020.2 where upgrading the Visual Studio Editor package in your manifest resolves this issue.
     
  10. tristan-unity

    tristan-unity

    Unity Technologies

    Joined:
    Jun 1, 2017
    Posts:
    7
    Please update to the latest ui toolkit package available to fix the issue.
     
  11. DrSeltsam

    DrSeltsam

    Joined:
    Jul 24, 2019
    Posts:
    100
    This is still happening with the latest UI Toolkit version (1.0.0-preview.9). Whenever opening a VFX graph which contains any groups,
    MissingFieldException: Field 'UnityEngine.UIElements.VisualElement.isBoundingBoxDirty' not found.
    is spammed in the console (same error as reported by @b4gn0 ).
    This also happens with ShaderGraph btw. I'm using Unity 2020.1.9f1 and HDRP/VFX 8.2.0
     
    MoonbladeStudios likes this.