UI Button

Hi everyone, I have a Step button. I want that when I press this button everything will assemble step by step. Can you show me how to do this ? . Thanks so much

I don’t think anybody can show you how to do this. This is a very vague question. If you want stuff to happen off the press of the button, you’ll have to code in what you want to happen.

So if you press a button and an object moves, you have to code that movement in. If you have several steps, you’ll need to have that in a state machine or a coroutine or some other way to make sure that each step is completed before it does the next.

This also sounds more like a scripting question than a UI question. Hopefully you know how to attach code to your button. If not, look UI Components - Unity Learn

Thanks for your reply :). I mean I have a function Debug.Log(“prinf string”), when I press button this string will be printed. But just onetime, when I click again nothing happen.

I would suggest you show your script. Either you’re doing something to turn it off, or you have collapse on in your console which means it will just stack the prints on each other and display a number to the right of it that shows how many times it triggered. So each time you hit the button, that number will increase.

I’m guessing it’s the collapse though from what you are saying.