Skip to main content
Glama
build-unity-package.cjs870 B
const fs = require('fs-extra'); const path = require('path'); // Copy templates to dist fs.copySync('src/unity/templates', 'dist/unity/templates'); // Copy and rename templates to UnityPackage const templatesDir = 'src/unity/templates'; const unityPackageDir = '../../UnityPackage/Editor/UnityMCP'; // Ensure target directory exists fs.ensureDirSync(unityPackageDir); // Read all files in templates directory const files = fs.readdirSync(templatesDir); files.forEach(file => { if (file.endsWith('.cs.hbs')) { const sourcePath = path.join(templatesDir, file); const targetFile = file.replace('.cs.hbs', '.cs'); const targetPath = path.join(unityPackageDir, targetFile); fs.copyFileSync(sourcePath, targetPath); console.log(`Copied ${file} -> ${targetFile}`); } }); console.log('Unity package build completed!');

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/muammar-yacoob/unity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server