Search Unity

Bug Visual Scripting doesn't list new MonoBehaviour scripts

Discussion in 'Visual Scripting' started by Mike9111, Dec 25, 2022.

  1. Mike9111

    Mike9111

    Joined:
    Jun 25, 2019
    Posts:
    1
    I just started using Visual Scripting. The problem I'm encountering is that I can access only a part of scripts that are attached to the GameObject. Specifically all the scripts that are "old" - meaning, they were there before I started using Visual Scripting. Any new MonoBehaviour script I create can't be accessed/listed in Visual Scripting. Even if I copy and rename a script that gets recognized by Visual Scripting (`EnableDamageOnAnimation1` on the screenshot).

    I tried using "Fix missing scripts" and "Generate" in Project Settings > Visual Scripting.

    I'm using Unity 2022.2.1f1

    Edit:

    "Regenerate nodes" did it. Not the greatest UX ever - it took me about 2 hours to figure it out.

    upload_2022-12-25_9-56-33.png
     
    Last edited: Dec 25, 2022
  2. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    120
    You need to regenerate nodes.

    upload_2022-12-26_18-52-21.png