Installation
Get the LoreMind Unity SDK running in your project.
Requirements
- Unity 2022.3 or later
- A LoreMind account - Sign up at loremind.peekgames.dev (includes free starter credits)
Step 1: Import the SDK
Download the LoreMind Unity SDK .unitypackage from GitHub Releases and import it into your project (drag it into your Project pane, or double-click the file).
The SDK will also be available on the Unity Asset Store once the listing is approved.
After importing, you’ll see these folders:
Assets/LoreMind/Scripts/- Core SDKAssets/LoreMind/Examples/- Sample scenesAssets/LoreMind/Settings/- Configuration
Step 2: Open the Welcome Window
A Welcome window should appear automatically after import. 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 your project’s local editor settings and is never included in builds. For production, you’ll configure a backend URL instead. See Backend Integration.
Click Save when done.
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.
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