Skip to content

fuqunaga/PrefsGUI-PostProcessingURP

Repository files navigation

PrefsGUI-PostProcessingURP

PrefsGUI extensions for URP PostProcessing.
Automatic generation of UI, changing parameters at runtime and saving their values.

screenshot

Installation

This package uses the scoped registry feature to resolve package dependencies.

Edit > ProjectSettings... > Package Manager > Scoped Registries

Enter the following and click the Save button.

"name": "fuqunaga",
"url": "https://registry.npmjs.com",
"scopes": [ "ga.fuquna" ]

Scoped Registrie Settings

Window > Package Manager

Select MyRegistries in Packages:

Select MyRegistries

Select PrefsGUI - PostProcessingURP and click the Install button

image

Usage

  1. Attach PrefsVolumeBehaviour to any GameObject.
  2. Set the target Volume component in PrefsVolumeBehaviour.volume.
  3. (Optional)Call SetDefaultValueFromVolume from the PrefsVolumeBehaviour context menu to set the Volume values to the default values in the PrefsGUI.
    *If PrefsVolumeBehaviour is attached to the same GameObject as the Volume, it is done automatically.
    SetDefaultValueFromVolume
  4. Follow the RosettaUI steps to display the PrefsVolumeBehaviour UI.
    See Example.

Tips

Changing Prefs keys for multiple instances

Prefix keys can be added or changed in batches from the editor window.
See PrefsGUI.EditorWindow.

Reference

  • PrefsGUI - Accessors and GUIs for persistent preference values using a JSON file
  • RosettaUI - Code-based UI library for development menus for Unity