A Unity package providing a simple key-value pair database supporting int, float, string, and bool types, with extensibility to custom types via generics. Current stable version is 2.1.0 (released 2021-01-05). The package is installed via Unity's Package Manager from the npm registry under the com.fluid scope. It uses Unity Events for change notifications and includes a global bool monitor component. Compared to PlayerPrefs or scriptable objects, Fluid Database offers type safety, a generic API, and editor integration.
npm install com.fluid.databaseVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of IntDatabase: set a value, get it, and check existence.
Update event listeners to use UnityEventPlus or migrate to the new event system.
Re-assign the bool values in the array field of the global bool monitor.
Add scopedRegistries entry as shown in the installation instructions.
Refer to the new UnityEventPlus documentation.
Add 'using FluidDatabase;' at top of script and ensure package is installed via package manager.
Add scopedRegistry for 'com.fluid' in manifest.json.
Ensure T matches the type used in Set. Prefer using typed database (e.g., IntDatabase) instead of generic <T>.