Good afternoon,
I would like to ask how i can make my click on open menu to open with a slide from bottom to top?
Currently it’s just pop up without any visual effects.
This is an implementation question, not a game design question.
But, briefly, you would probably use a Coroutine to animate your menu opening. Or you could use a tweening library, like DOTween. Or you could do it in the Update event, if you have some script that compares the target position/size to the current position/size.
Oh, thank you for information, hope it help me to create what’s in my mind
Or create an animation and set a trigger on it to turn on/off and then the script for the on button is just an animation trigger.
Whenever I have an object that moves from one location to another, I have a “on” position which is a Vector3, and an off position. During every Update() it checks if it’s currently in the correct position for the current state, and if not, it’ll move in the direction of the proper position. I use it for everything from doors, elevators, water levels, and of course: UI elements.