{"id":20004109,"url":"https://github.com/cj-mills/unity-media-display","last_synced_at":"2025-10-30T18:45:00.186Z","repository":{"id":155436787,"uuid":"617121280","full_name":"cj-mills/unity-media-display","owner":"cj-mills","description":"Unity Media Display is a Unity package for creating a demo screen to display test images, videos, or webcam streams. It provides a set of utility functions for setting up a demo screen, updating its texture and transformations, and initializing and managing webcam streams.","archived":false,"fork":false,"pushed_at":"2023-05-04T00:24:41.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T09:09:12.016Z","etag":null,"topics":["unity","unity3d"],"latest_commit_sha":null,"homepage":"https://christianjmills.com/posts/unity-media-display-tutorial/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cj-mills.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-03-21T18:35:36.000Z","updated_at":"2023-06-09T20:09:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"50a59bfd-4302-4ec1-9f44-e037b94d6c31","html_url":"https://github.com/cj-mills/unity-media-display","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cj-mills/unity-media-display","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj-mills%2Funity-media-display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj-mills%2Funity-media-display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj-mills%2Funity-media-display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj-mills%2Funity-media-display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cj-mills","download_url":"https://codeload.github.com/cj-mills/unity-media-display/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj-mills%2Funity-media-display/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281862786,"owners_count":26574703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"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","unity3d"],"created_at":"2024-11-13T05:28:34.101Z","updated_at":"2025-10-30T18:45:00.170Z","avatar_url":"https://github.com/cj-mills.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Media Display\n\nUnity Media Display is a Unity package for creating a demo screen to display test images, videos, or webcam streams. It provides a set of utility functions for setting up a demo screen, updating its texture and transformations, and initializing and managing webcam streams.\n\n\n\n## Demo Video\nhttps://user-images.githubusercontent.com/9126128/231288868-2116cc3a-ebbe-4b43-9305-30fea6887bf4.mp4\n\n\n\n## Demo Projects\n\n| GitHub Repository                                            | Description                                                  |\n| ------------------------------------------------------------ | ------------------------------------------------------------ |\n| [UnityMediaDisplay_Demo](https://github.com/cj-mills/UnityMediaDisplay_Demo) | A simple demo project demonstrating how to use the Unity-Media-Display and Unity-CV-Image-Gallery packages in Unity. |\n| [barracuda-image-classification-demo](https://github.com/cj-mills/barracuda-image-classification-demo) | Perform image classification using computer vision models.   |\n| [barracuda-inference-yolox-demo](https://github.com/cj-mills/barracuda-inference-yolox-demo) | Perform object detection using YOLOX models.                 |\n| [barracuda-inference-posenet-demo](https://github.com/cj-mills/barracuda-inference-posenet-demo) | Perform 2D human pose estimation using PoseNet models.       |\n\n\n\n## Code Walkthrough\n\n* [Code Walkthrough: Unity Media Display Package](https://christianjmills.com/posts/unity-media-display-walkthrough/)\n\n\n\n## Features\n\n- Display test images, videos, or webcam streams on a demo screen\n- Easily set up and modify demo screen properties like texture, rotation, scale, and position\n- Initialize and manage webcam streams with customizable settings\n\n\n\n## Getting Started\n\n### Prerequisites\n\n- Unity game engine\n\n### Installation\n\nYou can install the unity-media-display package using the Unity Package Manager:\n\n1. Open your Unity project.\n2. Go to Window \u003e Package Manager.\n3. Click the \"+\" button in the top left corner, and choose \"Add package from git URL...\"\n4. Enter the GitHub repository URL: `https://github.com/cj-mills/unity-media-display.git`\n5. Click \"Add\". The package will be added to your project.\n\nFor Unity versions older than 2021.1, add the Git URL to the `manifest.json` file in your project's `Packages` folder as a dependency:\n\n```json\n{\n  \"dependencies\": {\n    \"com.cj-mills.unity-media-display\": \"https://github.com/cj-mills/unity-media-display.git\",\n    // other dependencies...\n  }\n}\n```\n\n\n\n## Usage\n\nHere's an example of using the `MediaDisplay.MediaDisplayManager` class:\n\n```c#\nusing UnityEngine;\nusing CJM.MediaDisplay;\n\npublic class ExampleMediaDisplay : MonoBehaviour\n{\n    public GameObject screenObject;\n    public GameObject cameraObject;\n    public Texture testTexture;\n\n    void Start()\n    {\n        // Set the texture for the demo screen object.\n        MediaDisplayManager.SetDemoScreenTexture(screenObject, testTexture);\n\n        // Update the demo screen object's transform based on the texture dimensions.\n        MediaDisplayManager.UpdateDemoScreenTransform(screenObject, testTexture);\n\n        // Get the screen dimensions from the demo screen object.\n        int screenWidth = (int)screenObject.transform.localScale.x;\n        int screenHeight = (int)screenObject.transform.localScale.y;\n        Vector2Int screenDimensions = new Vector2Int(screenWidth, screenHeight);\n\n        // Initialize the camera for displaying the demo screen.\n        MediaDisplayManager.InitializeCamera(cameraObject, screenDimensions);\n    }\n}\n```\n\n\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](Documentation~/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcj-mills%2Funity-media-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcj-mills%2Funity-media-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcj-mills%2Funity-media-display/lists"}