Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need a whole bunch of help with my reset button i cant fing one using bolt to reset the scen help me please

What I have tried:

everythingedrftgyhujiuhygtfrdexwzedrftgyhujhybgtfrdesdrftgyhu
Posted
Updated 9-Jun-22 23:10pm
Comments
Dave Kreskowiak 9-Jun-22 22:58pm    
It's impossible to help you with so little information.

We can only work with what you typed, and you typed as little as possible.

1 solution

I'm assuming that you're talking about bolt scripting for Unity here; you don't actually provide a lot of details here. If you are, theoretically, you could assign a C# script to an empty object. Then all you would need to do is to set this as the active object from a flow machine.

To reference this object inside bolt, you add this to your scene variables as a game object and drag and drop it into the flow graph.

I assume you are looking at a reset script that looks a bit like this.
C#
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
Don't forget, if you are, that you would need to reset any static variables manually.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900