ConstSafe View on Asset Store (opens in new tab)

Package details

Latest version
1.1.0
Last updated
First released
Unity version
2022.3.62 or later
Package size
89 KB
Files
61
Favorites
1
Views in the past week
1

Price tracking

Last checked
Tracked since
Lowest recorded
$13.99 on

Keywords

ConstSafe

by birchgames (opens in new tab)

1 rating, too few to average

Editor-only Unity tool that generates type-safe constants and helpers from project data, replacing magic strings with compile-safe code and safer workflows.

Price $19.99

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for ConstSafe, 6 months Current $19.99; lowest $13.99; highest $19.99 in this period. $0 $10 $20 Jul Aug Sep Oct Nov Version 1.1.0 released 21 Jun 2026 v1.1.0

Asset preview

1 / 7

ConstSafe screenshot 1

ConstSafe screenshot 1

About this asset

ConstSafe is a Unity editor extension that scans project data and generates readable C# code for the places where magic strings usually cause bugs. Instead of hardcoding tags, scene names, resource paths, animator parameter names, shader property names, and similar values, you reference generated constants and IDs from code.

It is designed to be practical, lightweight, and safe to integrate into existing projects. Generated output has no runtime dependency on ConstSafe itself, so the generated code remains usable even if the package is later removed. ConstSafe also includes preview, selective regeneration, stale detection, onboarding, and orphan cleanup to make the workflow reliable in day-to-day use.

Built-in support includes tags, layers, sorting layers, scenes, legacy input axes, animator parameters, shader properties, audio mixers parameters and snapshots, resources, and editor-authored defined strings. Optional package support is included for Addressables and the New Input System. These integrations stay hidden unless the matching Unity package is installed, so the core package stays clean and does not force unnecessary dependencies.

ConstSafe is genre-agnostic and fits any Unity project that wants safer references and cleaner code, from prototypes to larger productions. It is also customizable: you can add your own editor-authored defined strings for simple use cases, or create full custom generators for advanced pipelines and team-specific workflows.

Best practice: use version control before first regeneration or major output changes.

From the publisher's Asset Store listing.

Technical details

  • Unity 2022.3 LTS+ editor-only package
  • Generates type-safe C# code from Unity project data
  • No runtime dependency on ConstSafe in generated output
  • Built-in generators for Tags, Layers, Sorting Layers, Scenes, Legacy Input Axes, Animator Parameters, Shader Properties, Resources, and Defined Strings
  • Optional package-gated generators for Addressables and New Input System
  • Resources output includes path constants and generated load helpers
  • Animator output includes names, typed IDs, and default values
  • Shader output includes property names and pre-hashed IDs
  • Supports editor-authored definition sources for custom constant sets
  • Supports public custom generators for advanced extensibility
  • Automatic stale detection and debounced regeneration workflow
  • Regenerate All and Regenerate Selected actions
  • Preview window for generated output before inspection
  • Orphan output detection and safe cleanup tools
  • First-run welcome window and importable samples included
  • Designed to compile cleanly without optional packages installed
  • Generated code is deterministic and intended for source control use

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2022.3.62f3 Compatible Compatible Compatible Compatible

As listed on the Asset Store.