Hello, i new with Unity 3D. I started my project using basic character movements. I did the default FPS and 3rd person controller, but i want to know the manual control using button. I know how to create a button, but i don’t know how to make a movement manually.
by button do you mean the GUI.Button() function in the OnGUI() method? If so then you just wrap it in an if statement and inside the if statement you put the code to move your character.
void OnGUI()
{
if(GUI.Button(...))
{
// function to move character
transform.position = Vector3.Lerp(start, end, time);
}
}