Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.7.3
Issue ID
UVSB-1891
Regression
No
Custom Visual Scripting Units disappear when regenerating Units
How to reproduce:
1. Open the project "1355911.zip" 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)
-
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?
-
XAFAX
Aug 31, 2021 14:42
Having the same issue. Should be fixed ASAP. It makes customizing Visual Scripting literally impossible.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Label is not centered when using flex-direction: row
- Incorrect initial target position when the Skinning Editor's "Depth" parameter is adjusted on a bone which is set as the "Effector" parameter on the "Limb Solver 2D" Component
- The order of activation for Water Deformers and Foam Generators will cause water artefacts in the Player
- Crash on `anonymous namespace'::PrepareTreesAndWriteWindParamsJobData::Execute when entering Play mode on a specific project
- [Linux] Crash on 'PPtr<RuntimeAnimatorController>::operator RuntimeAnimatorController*() const' when saving a new animation file
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
Wendy
https://docs.unity3d.com/Packages/com.unity.visualscripting@1.7/manual/vs-creating-visual-script-graph-node.html