How do you make an editor script?

Let’s say I want to replace all objects with a certain name with another object within every scene, and changes saved. How can this be done in the visual scripting?

Bolt in its current form can’t do editor scripts. Unity have discussed the possibility of triggering Bolt graphs in the editor though, but I don’t believe we have clarity on that topic just yet. The functionality might be implemented later on.

The only way to run anything in Bolt at edit time is to import Bolt Community Addons pack from here: GitHub - RealityStop/Bolt.Addons.Community: A community-driven project for extending Unity Bolt and then run Tools/Bolt/Build Unit Options. After that you’ll be able to add Manual Event to Bolt graphs. It has a button on it that you can click to execute Bolt graph code at edit time or runtime.

1 Like

Thanks! I don’t see any nodes exposing the editor stufflike selection or load/saving of prefabs and scenes. Do they exist or are these things I can write myself?

Bolt by default exposes only the most commonly used types. You might need to add missing types manually in Tools/Bolt/Unit Options Wizard.

Oh ok click of a button is how it’s done, I could get used to this convenience. cheers.