Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/3
PlayerPrefsRuntime Tool is a Unity plugin that allows you to retrieve all PlayerPrefs at runtime across multiple platforms, including Android, iOS, Windows, and macOS.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Additional compatibility information

Tool using Newtonsoft.Json that comes with the package

Description

PlayerPrefsRuntime Tool

version 1.0

Overview

PlayerPrefsRuntime Tool is a Unity plugin that allows you to retrieve all PlayerPrefs at runtime across multiple platforms, including Android, iOS, Windows, and macOS. This tool is invaluable for debugging, analytics, and ensuring the integrity of player preferences within your Unity projects.

Features

  • Cross-Platform Support: Compatible with Android, iOS, Windows, and macOS.
  • Runtime Access: Retrieve all PlayerPrefs as a dictionary directly from device for easy manipulation.
  • Logging: Display all PlayerPrefs data in the Unity Console for debugging purposes.
  • Extensible Architecture: Easily extendable to support additional platforms or functionalities.

Enable the Tool

To enable the PlayerPrefsRuntime Tool, define the PLAYER_PREFS_RUNTIME_TOOL scripting symbol:

Go to Edit > Project Settings > Player. Under the Other Settings tab, find Scripting Define Symbols. Add PLAYER_PREFS_RUNTIME_TOOL to the list, separated by a semicolon if other symbols are present.

Technical details

Usage

public class PlayerPrefsRuntimeExample : MonoBehaviour
{
private void Start()
{
#if PLAYER_PREFS_RUNTIME_TOOL
PlayerPrefsRuntime.AddTestPlayerPrefs(); // add playerpref data
PlayerPrefsRuntime.LogAllPlayerPrefs(); // log all playerpref data to console

// retrieve all PlayerPrefs as Dictionary <key, value>
Dictionary<string, object> allPrefs = PlayerPrefsRuntime.GetAllPlayerPrefs();
#endif
}
}

PlayerPrefs Runtime Tool

(not enough ratings)
5 users have favourite this asset
(5)
FREE
License type
File size
548.4 KB
Latest version
1.0
Latest release date
Jan 17, 2025
Original Unity version
2021.3.34
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR