Search Unity

VariablesSaver auto-added to scene?

Discussion in 'Visual Scripting' started by BackgroundMover, Feb 14, 2021.

  1. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    224
    I have some tests that are breaking because of the presence of an unexpected gameobject/component. It seems com.unity.visualscripting automatically creates a gameobject with the component even if you aren't using visual scripting. Is this the expected behavior?
     
    Last edited: Mar 12, 2022
  2. ericb_unity

    ericb_unity

    Unity Technologies

    Joined:
    Nov 24, 2017
    Posts:
    167
    This is a normal behavior coming from Bolt.
    It will create a new scene called DontDestroyOnLoad and add the Variable Saver and [Debug Updater] GameObject. Even in an empty scene as long as Bolt or VisualScripting is installed in your project.
     
    Haneferd likes this.
  3. CrazyVideoGamer

    CrazyVideoGamer

    Joined:
    Mar 18, 2020
    Posts:
    1
    I'm getting an error with the VariablesSaver game object even though I'm not using visual scripting.
    "UnityException: Trying to destroy invalid instance of 'Unity.VisualScripting.VariablesSaver' singleton."
    It's happening every time I stop playing my game.
    Do you know why?
    I'm just trying to set up a super simple platformer.
     
    Last edited: Dec 24, 2021
  4. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,068
    You should be able to remove Visual Scripting package in the Package Manager if you're not using it.
     
    bomal likes this.
  5. bomal

    bomal

    Joined:
    Jul 3, 2018
    Posts:
    6
    many thanks
    if you only have one scene you don't need this one