Utility

Core utility classes providing project path resolution and static class initialization infrastructure. These are foundational services used across the Paragon framework.

Architecture

spinner

Initialization Flow

spinner

Classes

Class
Description

Static path registry providing strongly-typed access to workspace, project, and asset folders

Custom attribute that forces static constructor execution for marked classes at application startup

Key Concepts

Automatic Static Initialization

Unity's [RuntimeInitializeOnLoadMethod] only works on static methods. The [RuntimeInitializeOnLoad] attribute extends this pattern to static classes — any class decorated with it has its static constructor executed automatically at startup, without needing to define a [RuntimeInitializeOnLoadMethod] in every class.

Strongly-Typed Path Access

ParagonPaths replaces string literals for file paths with a nested Folder hierarchy. Each folder implicitly converts to string, so paths can be used directly in I/O operations:

Last updated