Installation
Get the LoreMind Unity SDK running in your project.
Requirements
- Unity 2022.3.62f2 or later, 6000.0.58f2 or later, 6000.2.6f2 or later, or 6000.3 or later. These are the first versions with the fix for CVE-2025-59489, a Unity Runtime vulnerability that affects games built with older editors (Unity security advisory). If you already shipped a game built with an older editor, rebuild it with a patched version (or apply Unity's patch tool) and release an update.
- Git installed on your computer (git-scm.com/downloads). Package Manager uses it to install LoreMind from its Git URL. Restart Unity and Unity Hub after you install Git.
- A LoreMind account: LoreMind is invite-only right now. Request access, and once you're invited, sign in at loremind.peekgames.dev.
Step 1: Install the SDK
LoreMind installs and updates through Unity's Package Manager, from a Git URL.
- Open Window > Package Management > Package Manager. In Unity 6000.0 and 2022.3, it's Window > Package Manager.
- Click + and choose Install package from git URL. In Unity 2022.3, it's Add package from git URL.
- Enter this URL and click Install (in 2022.3, Add):
https://github.com/peekllc/loremind-unity-sdk.git?path=/LoreMindOr add LoreMind to the dependencies in Packages/manifest.json yourself:
{
"dependencies": {
"dev.peekgames.loremind": "https://github.com/peekllc/loremind-unity-sdk.git?path=/LoreMind"
}
}Keep your other dependencies entries as they are.
The SDK appears under Packages > LoreMind in the Project window. The first time you open the Control Panel, it creates two files in Assets/LoreMind/Settings/: LoreMindProjectSettings.asset (your project's settings, with factory defaults) and EntityMindCache.asset (the Entity Minds it loaded from the dashboard).
Updates
When a new version is out, Window > LoreMind > Control Panel shows Update available with a link to the release notes. To update, open Package Manager, select LoreMind and click Update. If you don't see an Update button, open the Manage menu and choose Update.
Control Panel > Settings > Updates checks for new versions when you click Check for Updates. It also checks once a day and writes a Console message when there's a new version; turn Check Once a Day off to stop that. Release notes are on the Releases page.
To stay on one version, add the release tag to the URL, for example https://github.com/peekllc/loremind-unity-sdk.git?path=/LoreMind#v1.0.10. Update keeps that version. To move to a newer one, choose Install package from git URL again and enter the URL with the new tag.
Examples
The examples are a Package Manager sample. In Package Manager, select LoreMind, open Samples, and click Import next to Examples. Unity copies them to Assets/Samples/LoreMind/<version>/Examples/. The examples need Unity's UI package (com.unity.ugui).
To run the example scene, open Scenes/LoreMindExample.unity in the imported folder, make sure your API keys are set in the Control Panel (Step 3), and press Play.
Moving from 1.0.9
LoreMind 1.0.9 was installed from a scoped registry. To move to the Git URL, open Packages/manifest.json in your project folder and:
- Replace
"dev.peekgames.loremind": "1.0.9"with"dev.peekgames.loremind": "https://github.com/peekllc/loremind-unity-sdk.git?path=/LoreMind". - Remove the
LoreMindentry fromscopedRegistries. If it was the only entry, remove the wholescopedRegistriesblock.
Save the file and return to Unity. Your settings, API keys, scenes and prefabs are kept.
Moving from 1.0.8 or Earlier
LoreMind 1.0.8 and earlier were imported into Assets/LoreMind. To move to Package Manager:
- Download
LoreMind-Upgrade-to-Package-Manager.unitypackagefrom the latest release. - Open it in your project (double-click the file, or drag it into the Project window) and import it. If Unity says the assets are missing a signature, click Import Anyway.
- Click Move to Package Manager, then choose whether to keep the old examples.
It removes the old LoreMind scripts from your Assets folder, installs LoreMind from its Git URL, and reopens your scenes. Your settings (Assets/LoreMind/Settings), API keys, scenes and prefabs are kept. Changes you made to LoreMind's own scripts are not kept. The upgrade package removes itself when it's done. If you choose Not Now, use Window > LoreMind > Move LoreMind to Package Manager when you're ready. If Git isn't installed, nothing is changed and the upgrade package tells you where to get Git.
To move by hand instead: close Unity, delete everything in Assets/LoreMind except the Settings folder and Settings.meta, add LoreMind to Packages/manifest.json as above, then open the project.
Then check the short list in What's New in 1.0.9.
Step 2: Open the Welcome Window
A Welcome window should appear automatically after install. If not, open it via Window > LoreMind > Welcome.
Click Open Control Panel to configure your API keys.
Step 3: Configure the Control Panel
The Control Panel (Window > LoreMind > Control Panel) is where you configure the SDK.
Editor API Key
Your Editor API Key lets Unity Editor tools fetch your Entity Minds from the dashboard.
- Go to loremind.peekgames.dev
- Navigate to Projects > Your Project > API Keys
- Create an Editor Key (or use existing)
- Copy the key (starts with
sk_editor_) - Paste it in the Control Panel
Server API Key (for Editor Testing)
For testing NPC interactions in the Editor, you need a Server API Key:
- In the dashboard, create a Server Key (starts with
sk_server_) - Copy and paste it in the Control Panel
Note: This key is stored in Unity's per-project user settings (the
UserSettings/folder) and is never included in builds: the Editor-only transport that uses it doesn't exist in game client builds. For production, you'll configure a backend URL instead. See Backend Integration.
Click Save when done.
Keep Keys and Lore Out of Version Control
Add these to your project's .gitignore (or your VCS's ignore list):
# Unity per-user settings: holds your LoreMind Editor and Server API keys
/UserSettings/
# Local copy of your lore written by "Sync Lore" (Control Panel)
/.loremind/Unity's standard .gitignore already ignores UserSettings/; check that yours does.
Upgrading from SDK 1.0.8 or earlier: if a project's Control Panel shows no key after updating, enter it again there.
Verify Installation
Open the Control Panel (Window > LoreMind > Control Panel) and check:
- Entity Minds dropdown loads without errors (it stays empty until you create your first Entity Mind in Your First NPC)
- Credits remaining shows your balance
Troubleshooting
Welcome window doesn't appear
Open it manually: Window > LoreMind > Welcome
Entity Mind dropdown won't load
- Check your Editor API Key is set (starts with
sk_editor_) - Verify internet connection
- Click the Refresh button next to the dropdown
An empty dropdown with no error just means your project has no Entity Minds yet. You'll create one in Your First NPC.
"Invalid API key"
- Editor keys start with
sk_editor_ - Server keys start with
sk_server_ - Make sure you copied the full key
Control Panel won't open
Try reimporting the SDK package or restarting Unity.
"No 'git' executable was found"
Package Manager needs Git to install LoreMind from its Git URL. Install Git from git-scm.com/downloads, restart Unity and Unity Hub, then install LoreMind again.
Next Steps
Your SDK is ready. Now build your first NPC:
- Your First NPC - Create an Entity Mind and talk to it in your scene
- Backend Integration - Prepare for production