Proximity Prompts
Last updated
Last updated
Proximity prompts are a fast way to listen for player input in world.
The simplest way to create a prompt is to drag Core's ProximityPrompt prefab onto your game object.
To listen to prompt input you can use onActivated
:
Because a Proximity Prompt is a prefab you can entirely change how it displays.
There are a few core customization fields on the Proximity Prompt that you can change in editor or through code:
Prompts automatically work across platforms. On mobile prompts can be tapped to activate.
onActivated will only ever be fired when the local client interacts with a prompt. This cannot be listened to on the server. To network the result check out .
If you're looking to change how a proximity prompt looks entirely you can modify it directly in your object. If you are wanting to repeat the same style of prompt throughout your game you'll want to set it up as a .