Search Unity

Question Build and Run error with visual scripting

Discussion in 'Visual Scripting' started by ParlinJiang, Dec 1, 2022.

  1. ParlinJiang

    ParlinJiang

    Joined:
    Nov 3, 2022
    Posts:
    1
    My project build with visual scripting and it runs well in unity but went I build and run it, all falls apart (see picture).
    Player won't move, assets' position not right, sorting layer not right, all mass up.


    I don't know whats wrong here, please help.
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,063
    I don't think it's related to Visual Scripting per se. Look into Sprite Renderer's sorting order. You likely have sprites in the same sorting layer and with identical sorting order which might look fine in the editor, but gets shuffled in other contexts since sorting order is the same. Make sure sprite renderers in the foreground have a higher sorting order number than stuff in the background.