{"id":25625323,"url":"https://github.com/lonsdale201/unity-for-wp","last_synced_at":"2026-03-02T05:01:34.863Z","repository":{"id":277824396,"uuid":"860668677","full_name":"Lonsdale201/unity-for-wp","owner":"Lonsdale201","description":"Simple loader and inicilizer plugin for Unity + WebGL project","archived":false,"fork":false,"pushed_at":"2025-02-17T23:00:23.000Z","size":9350,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T10:51:08.948Z","etag":null,"topics":["unity","webgl","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lonsdale201.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-20T22:19:28.000Z","updated_at":"2025-02-17T23:00:26.000Z","dependencies_parsed_at":"2025-04-14T10:43:13.786Z","dependency_job_id":"05ad619b-38a0-4d42-8d98-407898f7b017","html_url":"https://github.com/Lonsdale201/unity-for-wp","commit_stats":null,"previous_names":["lonsdale201/unity-for-wp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lonsdale201/unity-for-wp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonsdale201%2Funity-for-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonsdale201%2Funity-for-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonsdale201%2Funity-for-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonsdale201%2Funity-for-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lonsdale201","download_url":"https://codeload.github.com/Lonsdale201/unity-for-wp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lonsdale201%2Funity-for-wp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity","webgl","wordpress-plugin"],"created_at":"2025-02-22T14:57:00.389Z","updated_at":"2026-03-02T05:01:34.501Z","avatar_url":"https://github.com/Lonsdale201.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity for WP\n\nStable tag: 2.1\n\n**WordPress Plugin for Unity WebGL Projects**\n\n## Overview\n\n**Unity for WP** is a WordPress plugin that simplifies the integration of Unity WebGL builds into your WordPress site. It automates the setup process and allows you to easily upload, manage, and initialize multiple Unity WebGL builds.\n\nThe plugin handles everything—your job is to build your Unity WebGL project and upload the zipped build through the plugin interface.\n\n**Important:**  \nMake sure you zip the contents of your build folder directly, **not the parent folder**. The system will not work if an extra directory wraps your build files.\n\n**Example of how to zip your build:**  \n[Build Example](https://prnt.sc/EqE7U-nJJeQ9)\n\n---\n\n## Features\n\n- **Multiple Build Support**: Upload and manage multiple Unity WebGL builds on the same site.\n- **Automatic Folder Structure**: Each uploaded build is extracted into its own directory within the `unitybuild` folder (e.g., `ubuild_1`, `ubuild_2`, etc.).\n- **Build Management**: View all uploaded builds in the **Builds** tab under the plugin settings. You can delete or re-upload individual builds at any time.\n- **Shortcode Support**: Embed Unity builds using a simple shortcode with customizable options.\n\n![image](https://github.com/user-attachments/assets/f37aec9b-d806-4592-84b5-79cd342d3da7)\n\n\n---\n\n## How to Use\n\n### Uploading Your Build\n\n1. Create a Unity WebGL build.\n2. Zip the build files directly (do **not** include the parent folder).\n3. Upload the zipped build through the plugin’s interface.\n4. The plugin will extract the build and assign it a unique ID (e.g., `ubuild_1`).\n\n---\n\n## Shortcode Usage\n\nTo embed a Unity WebGL build, use the following shortcode: `[unity id=\"ubuild_1\"]`\n\n### Shortcode Parameters\n\n- `id` (required): Specifies the build ID to embed.\n- `autostart` (optional): If set to `false`, the Unity WebGL project will only start when a button is clicked.\n- `width` and `height` (optional): Customize the size of the Unity WebGL canvas. You can use pixels or percentages.\n\n**Examples:** `[unity id=\"ubuild_1\" autostart=\"false\" width=\"100%\" height=\"50vh\"]`\n\n---\n\n## Custom Button and Placeholder\n\nIf `autostart` is set to `false`, you can provide a custom button text and a placeholder image in the plugin settings. Once the user clicks the button, the placeholder and button will disappear, and the Unity WebGL project will initialize.\n\n---\n\n## JavaScript Event Listener\n\nThe plugin provides a custom event listener that fires once the Unity instance is initialized.\n\n**Example:**\n\n```javascript\ndocument.addEventListener(\"unityInitialized\", function (e) {\n  // e.detail.unityInstance contains the Unity instance\n  // e.detail.buildId contains the ID of the initialized build\n  console.log(\"Unity initialized:\", e.detail);\n});\n```\n\n## Future Plans\n\n- Dedicated GitHub Repository for jslibs, editor extensions, and demo builds.\n- Scene Loading Events: Code samples to handle scene load events will be added.\n- Enhanced Build Management Interface.\n\n## Troubleshooting\n\n- Ensure your server supports Gzip or Brotli compression for optimal performance.\n- If compressed builds are not working, switch to an uncompressed version in the plugin settings.\n\n## Changelog\n\n2.1 - 2025.02.17\n\n- New Project name column option added in the build list\n- New reuploaded date column added in the build list\n- The loader runs only once at a time\n- Automatice added current post id as attributum to canvas html element (data-post-id)\n\n---\n\n2.0 - 2025.02.16\n\n- Multiple Build support\n- New interface for your uploaded builds\n- New upload function within your wpadmin (The build does not need to be uploaded via ssh or ftp)\n- New autostart enable disable option for the webgls\n- New shortcodes to support multiple builds\n- New shortcode paramteres: autostart, width, height\n- Option to set button and placeholder images in your canvas if autostart false\n- Custom js eventlistener for the developers: _unityInitialized_\n\n- Removed the sample build\n\n---\n\n1.1 - 2024.09.24\n\n- Fixed the Deactivation issue\n- Added the plugin to the update server\n- **New settings:** Set your Canvas height,width, and aspect ration\n- **New settings option:** You can enable the unfiltered files upload only for the admin for this file types: obj, gltf+json, gltf-binary, mtl\n- New Js eventlisner added when the Unity finished the initialization\n\n---\n\n1.0\nInitial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonsdale201%2Funity-for-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonsdale201%2Funity-for-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonsdale201%2Funity-for-wp/lists"}