float GetAxisGravity(string description) float GetAxisGravity(int descriptionHash)
description: The name of the axis, as defined in SetAxis(). descriptionHash: The hashcode of the name of the axis, as defined in SetAxis().
SetAxis()
float: The gravity value for the axis.
gravity
Returns the gravity value for the axis. You can change this value with SetAxisGravity().
SetAxisGravity()
This is provided as a way to present the player with a UI to display and change the gravity settings.
Last updated 6 years ago
Was this helpful?