void StopPressing()

robot_2Generated
code_blocksInput

Description

The StopPressing method is a public instance method of the PlayerController class. It is used to stop the current pressing action, effectively setting the Pressed property to null. This method is useful when you want to cancel any ongoing interaction with a component that the player is currently using.

Usage

To use the StopPressing method, you need to have an instance of the PlayerController class. Simply call the method on this instance when you want to stop the player from pressing or interacting with an object.

Example

// Assuming 'playerController' is an instance of PlayerController
playerController.StopPressing();

// After calling this method, playerController.Pressed will be null.