Installation
Get the LoreMind Unity SDK running in your project.
Requirements
- Unity 2021.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 from the Unity Asset Store and import it into your project.
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 locally in Unity’s EditorPrefs and is never included in builds. For production, you’ll configure a backend URL instead. See Backend Integration.
Click Save when done.
Step 4: Create Your First Entity Mind
Before your NPCs can talk, they need a personality. Create one in the dashboard:
- Go to loremind.peekgames.dev
- Navigate to Entity Minds > Create
- Fill in:
- Name:
Test NPC - Personality:
Friendly and helpful. Eager to answer questions.
- Name:
- Click Create
See Entity Minds documentation for detailed configuration.
Verify Installation
Open the Control Panel (Window > LoreMind > Control Panel) and check:
- Entity Minds dropdown shows your NPCs
- Credits remaining shows your balance
Troubleshooting
Welcome window doesn’t appear
Open it manually: Window > LoreMind > Welcome
Entity Mind dropdown is empty
- Check your Editor API Key is set (starts with
sk_editor_) - Verify internet connection
- Click the Refresh button next to the dropdown
- Ensure you’ve created at least one Entity Mind in the dashboard
”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:
- Getting Started - Build a talking NPC
- Backend Integration - Prepare for production