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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

VariablesSaver auto-added to scene?

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

  1. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    209
    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:
    1,775
    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