Search Issue Tracker

By Design



Found in [Package]


Issue ID




Custom Visual Scripting Units disappear when regenerating Units

Package: Visual Scripting


How to reproduce:
1. Open the project "" found in the Google Drive
2. Select the "GameObject" object in the Hierarchy
3. Click on Edit Graph in the Inspector
4. Right-click anywhere in the Script Graph and scroll down in the list to find a Unit called "My Unit"
5. Replace the code in the "MyUnit" C# script with "MyUnit#2" C# script
6. Go into Edit -> Project Settings -> Visual Scripting and press Regenerate Units
7. Go into the Script Graph previously used and try to add the "MyUnit" Custom Unit

Expected result: Can add Custom Unit after Regenerating Units
Actual result: Custom Unit disappears after Regenerating Units

Reproducible: 1.6.1 (2021.1.20f1), 1.7.3 (2021.2.0b11, 2022.1.0a8)
Could not test with: 2019.4.30f1, 2020.3.18f1 (Visual Scripting not supported)

  1. Resolution Note:

    This issue is designed that way, the reason for this not working is that you are putting the inspector inside the same file as the custom unit. Please refer to the following documentation in order to make this work.
    Hope this is helpful
    Thanks so much

Comments (2)

  1. CuddlesWithEmus

    Mar 11, 2022 07:24

    I "had" the same issue here, but I can't figure out a workaround to use both.

    What does "in the same file" mean in the resolution note? I commented out all of my code, *in a separate file,* that modified anything to do with the inspector (which is not very much, there's only two attributes/classes), and I was able to find my units again. I tried changing the namespace, but that didn't do anything either.

    How do I separate the files any more than having them in separate files?

  2. XAFAX

    Aug 31, 2021 14:42

    Having the same issue. Should be fixed ASAP. It makes customizing Visual Scripting literally impossible.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.