Search Results for

    Show / Hide Table of Contents

    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:

    • SharedVFX
    • FMod
    • SharedInternalDamage/Preset

    Dependency and package inspection

    1. Confirm that UnityProject/Packages/manifest.json references the package ID com.shanghaiwindy.middlesharedresources.
    2. Confirm that the actual package directory Packages/Sdk/com.shanghaiwindy.middlesharedresources exists.
    3. 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.

    In this article
    Back to top Panzer War Document