PlayerPrefs Actions

v1.0

Set PlayerPrefs Action

Saves a value to PlayerPrefs from either a fixed value or a Blackboard entry, supporting int, float, and string types with optional auto-save. Can read from global or executor Blackboard to persist runtime data between sessions. Essential for saving player settings, progress checkpoints, high scores, or any data that should survive application restarts.

Delete PlayerPrefs Action

Deletes a specific PlayerPrefs key or clears all saved preferences, with optional auto-save and confirmation warnings for safety. Supports logging of deletion operations and can skip the save step for batch operations. Ideal for clearing user data, resetting game state, or removing individual saved values.

Get PlayerPrefs Action

Loads a value (int, float, or string) from PlayerPrefs and stores it in either the global or executor Blackboard for use by other Actions. Supports default fallback values when keys don't exist and optional logging for debugging. Perfect for loading saved settings, player progress, or persistent game state into the action system.

Increment PlayerPrefs Action

Modifies a numeric PlayerPrefs value by adding or subtracting a specified amount, with optional min/max clamping and auto-initialization. Supports both integer and float types with automatic key creation if missing. Great for score tracking, achievement progress, currency systems, or any cumulative persistent values.

Last updated