You can create a ScriptableObject by righting click the hierarchy and creating a Key object
Key Name: Add the keys name here
Key Sprite: Add the sprite to use for the key object
Key ID: A unique indentifying number to be used as saving information for the inventory
NOTE: Make sure all key scriptables are inside the RESOURCES folder, this will allowing the saving functionaity to work as intended.
Add a 3D object of a key to your scene and make sure it is setup as below:
Box Collider
InteractablePrompt script (Optional Component)
Key Collectable script
KeyScriptable: Add the relevant ScriptableObject to this slot
Pickup Sound: Add a pickup sound of your choice
Last updated 20 days ago