Applying gravity in Unity is a fundamental aspect of game development, as it allows objects to fall and interact with each other realistically. To apply gravity, you can use the Rigidbody component, which provides physical properties to objects and enables them to respond to forces like gravity.
To apply gravity to an object, simply add a Rigidbody component to it through the Inspector window. By default, gravity will be applied automatically, pulling the object downward. You can adjust the strength of gravity by altering the Gravity Scale property in the Rigidbody component. A higher value will result in a stronger gravitational pull.