Simple Movement in Unity
First off I am using Unity 2022.
First thing you must do is create a 3D Object and name it Player.
Create a New C# Script and name it Player.
Now take the new Script and drag it and drop it onto your 3D Object so that anything that happens in the script will effect the object that you created.
Now that you have the script attached to the Player GameObject we can now work on making it move.
Double click on the Player Script to open up the Microsoft Visual Studio where you can start typing in your code to make the object move.
Find where it says void Update ( )
Go down to where you see the brackets.
// Now next to transform.Translate put (Vector3.right); this will allow for the object to move 1 meter per frame at approximately 60 frames per second which is quite fast. With this code being within void Update ( ) it will repeat every frame.
// This can be fixed so that it moves the object known as player 1 meter per second instead of 1 meter per frame. We multiply it by Time.deltaTime as seen in the example below.
// If you want to make it go slightly faster you can multiply by 5 as seen below
Hope this helps whoever reads this.