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.

Resolved From Bolt to UVS

Discussion in 'Visual Scripting' started by SPNK78, Apr 23, 2021.

  1. SPNK78

    SPNK78

    Joined:
    Mar 8, 2021
    Posts:
    13
    Hello,

    I have 2 questions please.

    1-) I try to migrate my Bolt Flow machines to UVS. For some of them , no problem, but for some others I've got the error :

    [Worker0] Deserialization Failure Data

    [Worker0] Failed to deserialize scriptable object.
    System.Runtime.Serialization.SerializationException: Deserialization into 'Unity.VisualScripting.ScriptGraphAsset' failed. ---> System.Exception: Cannot create an instance of an interface or abstract type for Unity.VisualScripting.IGraphElement

    Someone knows why?

    2-) I used Bolt API to manage Bolt variables / custom events from C# scripts.

    On the UVS doc , it says it is still possible , for example here at the bottom : https://docs.unity3d.com/Packages/com.unity.visualscripting@1.5/manual/vs-events-reference.html

    However, it seems we still have to use dependencies :

    Usings API
    Add the following usings to your C# script to access the API.

    using Ludiq;
    using Bolt;


    So do we need to install also Bolt ? It will not cause conflicts?

    Thanks
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,106
    You likely need to sort out your script namespaces which currently is not being done automatically. All the content under Ludiq and Bolt namespaces is now under Unity.VisualScripting.

    That documentation link seems to have incorrect info on the API relating to namespaces.

    And Installing Bolt on top of UVS will conflict unless you remove UVS from the project entirely. They're not meant to be used in parallel.
     
  3. SPNK78

    SPNK78

    Joined:
    Mar 8, 2021
    Posts:
    13
    Hello,

    Thanks it is was I did, but still didn't work. I only moved my scripts into another folder and it worked.

    For my 1), i Fixed it too. In case for someone else, it was due to the fact I used Units from Community Add-ons. And I didn't install it yet on UVS. Once it is done it worked.
     
    ericb_unity likes this.