Shared Resources Package Folder
中文 | English
Run this command at the repository root to replay the examples through the local Unity MCP.
python Docs/Manual/manual/tools/tutorials.py run shared-resources-folder
Click to expand MCP actionsClick to collapse MCP actions
Prepare the teaching sample. The recipe provides ${variables}.
{
"variables": {
"sdkCheckout": "../../../Panzer-War-Mod-SDK"
},
"calls": []
}
Current SDK layout
The SDK contains the project in UnityProject and the shared resources package beside it in Packages/Sdk/com.shanghaiwindy.middlesharedresources.
Extract the complete SDK as described in project setup and keep those two folders next to each other.
The package already contains these directories; keep the exact case and spelling:
SharedVFXFModSharedInternalDamage/Preset
Dependency and package inspection
- Confirm that
UnityProject/Packages/manifest.jsonreferences the package IDcom.shanghaiwindy.middlesharedresources. - Confirm that the actual package directory
Packages/Sdk/com.shanghaiwindy.middlesharedresourcesexists. - Open Window → Package Manager in Unity and find Panzer War Middle Shared Resources.
Click to expand MCP actionsClick to collapse MCP actions
[
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/ReadAllText",
"args": [
"${sdkCheckout}/UnityProject/Packages/manifest.json"
]
},
"expect": {
"contains": "\"com.shanghaiwindy.middlesharedresources\": \"file:../../Packages/Sdk/com.shanghaiwindy.middlesharedresources\""
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/ReadAllText",
"args": [
"${sdkCheckout}/Packages/Sdk/com.shanghaiwindy.middlesharedresources/package.json"
]
},
"expect": {
"contains": "\"name\": \"com.shanghaiwindy.middlesharedresources\""
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.Directory/Exists",
"args": [
"${sdkCheckout}/Packages/Sdk/com.shanghaiwindy.middlesharedresources/SharedVFX"
]
},
"expect": {
"contains": "(Boolean) True"
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.Directory/Exists",
"args": [
"${sdkCheckout}/Packages/Sdk/com.shanghaiwindy.middlesharedresources/FMod"
]
},
"expect": {
"contains": "(Boolean) True"
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.Directory/Exists",
"args": [
"${sdkCheckout}/Packages/Sdk/com.shanghaiwindy.middlesharedresources/SharedInternalDamage/Preset"
]
},
"expect": {
"contains": "(Boolean) True"
}
}
]
Migrating existing assets and historical context
If assets have missing references, use the migration guide to check their files and GUIDs.
Early tool versions stored these resources under Assets/Res. The current SDK uses the shared package declared in its manifest.