#Community Addons Help

1 messages · Page 1 of 1 (latest)

timid wadi
#

Hello, I'm a user of Visual Scripting for about two years and I just discovered the Community Addons by Reality.Stop(). It's a fantastic addition to VS but I don't find any real documentation on it besides the release note section on github

The thing is, I don't really understand how to use Delegates (Create Action, Bind Action / Func...), I feel like it's a very useful functionality, could someone explain it to me ?

GitHub

A community-driven project for extending Unity Bolt - RealityStop/Bolt.Addons.Community

heady cargo
# timid wadi Hello, I'm a user of Visual Scripting for about two years and I just discovered ...

Hi, sorry about that I will see what I can do about documentation when I update it.

About the delegates.

First to create a Delegate what you need to do is in the Project tab(the tab with your files and folders) right click on a empty space then go to
Create > VisualScripting > Community > Code > Delegate now in the inspector you can chose the type for the delegate your want

then you can open the C# Preview which is in Windows > Community Addons > C# Preview then you can press compile this will create the delegate for you. if you don't see any code in the preview make sure to click on the Delegate asset once the window is opened.
And if its not compiling then Open the Utility Window and press compile all. which should be in Windows > Community Addons > Utility Window if not then right click on a empty spot in a graph and the option should appear there to open the Utility Window if i am not mistaken.

Now you can go to a graph and Add a Create Action or Create Func like in the screenshot depending on the type you chose in the inspector when creating the delegate. Click on the Node and in the Graph Inspector you can set the type of the action there.

#

Here is the graph explaining each unit

heady cargo
timid wadi
#

Ok, so your are one oh the contributors ? Thanks a lot for the explanation, I had never used Delegates in C# before, now I understand better.

I have an other question about community addons. Some features aren't working properly, like the "Input/Output Visible" of the reroute nodes Maybe you already know about it ?

heady cargo
timid wadi
#

Okay, I see.
I'll keep posting here if I have any more questions as I'm still learning about the add-on.
Thank you for maintaining it alive, it's so useful ! 👍

heady cargo
timid wadi
#

Hi @heady cargo
I've upgraded my Unity from 6.0 to 6.2 and I got this error, do you know how I can solve it ?

heady cargo
heady cargo
timid wadi
#

Okay, I recompiled and the error is gone, but I may have made a mistake. 😬
Before recompiling, I opened a graph that contained the Delegate Action, but now the graph is empty.

heady cargo
timid wadi
#

Ok, hopefully I did. Thank you for the help, I should have thought about recompiling. In fact, something strange happened when I tried to recompile: the window with the recompile button disappeared and I can't find it anymore. Did you change its location in the new version ?

heady cargo
timid wadi
#

Okay, thank you 👍

heady cargo
# timid wadi Okay, thank you 👍

Like in this picture i also moved the to embed and to macro here for easier access since it would be annoying to need to open the window everytime you want to use it, but all the options will still be in the window as well

heady cargo
timid wadi
#

Okay, I'm back on this.
It seems I cannot recover my graphs. All graphs that contained a Create Action or Invoke Action are empty and VS can't serialize them. The files still contain data, but in the editor they are empty and at runtime they do not work. 😕
And it comes with this error.

I don't know if you have any idea how I could recover my graphs ?

heady cargo
heady cargo
timid wadi
#

Nothing seems to have changed. 😕

heady cargo
#

can you send me the graph file?

heady cargo
timid wadi
heady cargo
# timid wadi Here are the 3 graphs

what is the name of the compiled delegate can you go to the generated script in Assets/Unity.VisualScripting.Community.Generated/Scripts/Delegates then tell me the name of the script?

heady cargo
# timid wadi Here are the 3 graphs

yeah it seems like the name of the delegate changed so it could not find the same compiled delegate for example its supposed to compile as _GenericAction but the one in the graph is as Generic_Action so it caused a error. Once i edited these graph files to change the names it worked again

heady cargo
# timid wadi Here are the 3 graphs

You can update the the addons since I pushed a change now, Then compile the delegate again then remimport these assets to your project and it should work fine

timid wadi
#

Yeah it worked, thanks a lot, I've saved my graphs ! 🥳

In the future, do I need to recompile all my delegates when I update Unity or community add-ons to prevent this from happening again ?

Again, thank you for your time and your patience !

heady cargo
timid wadi
#

Hello @heady cargo
I'm dealing a new issue which is that I can't build my project.
By creating a blank project, I was able to identify that the problem came from the delegates. As soon as I create a Delegate Asset and compile it, the build fails.
If you have time, could you look into it ?

heady cargo
timid wadi
heady cargo
# timid wadi

what delegate type did you use In the delegate asset

timid wadi
#

Action
I also tried with a Unity Action

heady cargo
timid wadi
#

no

heady cargo
timid wadi
#

I didn't try and I can't test it because the error persists even though I delete the Delegate asset.

heady cargo
heady cargo
timid wadi
#

Great, it works UnityChanThumbsUp
thank you for the quick fix.

heady cargo
# timid wadi Great, it works <:UnityChanThumbsUp:885169594808029275> thank you for the quick...

Oh yes by the way about your initial message you were looking for documentation, I've been trying to finish the Wiki page on the Github, for better documentation so if you did not see it you can go here https://github.com/RealityStop/Bolt.Addons.Community/wiki I am still working on it but should have most info already on it

GitHub

A community-driven project for extending Unity Bolt - RealityStop/Bolt.Addons.Community