ParagonMenuItems

Static class providing top-level Unity Editor menu items under the Paragon menu and the Assets context menu. Includes commands for opening the Scriptable Factory Creator, updating script templates, reloading domain/scripts, and force-reserializing assets.

Definition

Namespace: Paragon.Editor Assembly: Paragon.Editor.dll

public static class ParagonMenuItems

Remarks

All menu items are registered via Unity's [MenuItem] attribute and appear in the Unity Editor's top menu bar. The class serves as a central registry for Paragon-related editor commands, delegating to the appropriate subsystem for each operation.

Quick Lookup

Menu Path
Priority
Description

Paragon/Scriptable Factory Creator

1

Opens the ScriptableFactoryCreator editor window

Paragon/Update Script Templates

2

Calls ScriptTemplates.Update() to refresh script templates

Paragon/Reload/Domain

3

Requests a script/domain reload via EditorUtility.RequestScriptReload()

Paragon/Reload/Scripts

4

Deletes .csproj and .sln files, refreshes AssetDatabase, and reloads scripts

Assets/Force Reserialize

1000

Force-reserializes all currently selected assets

Methods

OpenWindow (private)

Opens the Scriptable Factory Creator editor window.

UpdateScriptTemplates

Refreshes Paragon script templates by calling ScriptTemplates.Update().

ReloadDomain

Triggers a Unity domain reload.

ReloadScripts

Performs a full script reload by deleting all .csproj and .sln files from the project root, refreshing the AssetDatabase, and requesting a script reload.

Behavior:

  1. Finds and deletes all .csproj files in the project root directory

  2. Finds and deletes all .sln files in the project root directory

  3. Calls AssetDatabase.Refresh()

  4. Calls EditorUtility.RequestScriptReload()

ForceReserializeSelectedAsset (private)

Force-reserializes all currently selected assets in the Unity Project window.

Behavior:

  1. Gets asset paths for all selected objects

  2. If no objects are selected, returns early

  3. Calls AssetDatabase.ForceReserializeAssets with the selected paths

  4. Refreshes the AssetDatabase

Common Pitfalls

circle-exclamation
circle-exclamation

See Also

Last updated