{"id":15750811,"url":"https://github.com/rgl/unity-example-windows-vagrant","last_synced_at":"2025-06-28T13:35:02.221Z","repository":{"id":139753596,"uuid":"130509382","full_name":"rgl/unity-example-windows-vagrant","owner":"rgl","description":"a simple Unity example that shows a cube","archived":false,"fork":false,"pushed_at":"2019-07-27T12:09:27.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T11:56:50.191Z","etag":null,"topics":["example","unity","unity3d","vagrant"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/rgl.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":"2018-04-21T20:23:42.000Z","updated_at":"2020-09-30T14:39:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5ecc84c-1c71-496f-84a3-8790e7e44424","html_url":"https://github.com/rgl/unity-example-windows-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Funity-example-windows-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Funity-example-windows-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Funity-example-windows-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Funity-example-windows-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/unity-example-windows-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429440,"owners_count":20775809,"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","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":["example","unity","unity3d","vagrant"],"created_at":"2024-10-04T07:00:17.347Z","updated_at":"2025-03-31T07:21:15.086Z","avatar_url":"https://github.com/rgl.png","language":"PowerShell","readme":"This is a simple Unity example that shows a cube.\r\n\r\nYou can move the cube around by using the arrow keys.\r\n\r\n# Vagrant Environment\r\n\r\nAfter a `vagrant up` you should have a VM with Unity installed. You still need to\r\n[activate](https://docs.unity3d.com/Manual/LicensesAndActivation.html) it by\r\nlaunching Unity Hub from the Desktop shortcut.\r\n\r\nAfter Unity is activated, you can build `Build\\Cube.exe` from the command line with:\r\n\r\n```powershell\r\n# build the project.\r\n# NB this only succeeds after Unity is activated (when its\r\n#    activated a C:\\ProgramData\\Unity\\Unity_lic.ulf file exists).\r\n# NB the scenes to be built must be declared inside the\r\n#    ProjectSettings/EditorBuildSettings.asset file.\r\n#    You can do this in Unity, by selecting the File | Build Settings\r\n#    menu and clicking the \"Add Open Scenes\" button.\r\n# see https://docs.unity3d.com/Manual/CommandLineArguments.html\r\n\u0026'C:\\Program Files\\Unity\\Editor\\Unity.exe' `\r\n    -batchmode `\r\n    -quit `\r\n    -logFile - `\r\n    -projectPath $PWD `\r\n    -buildWindows64Player \"$PWD\\Build\\Cube.exe\" `\r\n    | Out-String -Stream\r\nif ($LASTEXITCODE) {\r\n    throw \"Build failed with exit code $LASTEXITCODE\"\r\n}\r\n```\r\n\r\n# Notes\r\n\r\n* To use unity from a non-administrator account you need to grant it the `Remote Enable` permission to the `ROOT\\CIMV2` WMI namespace. For example, to run from Jenkins see [rgl/jenkins-vagrant](https://github.com/rgl/jenkins-vagrant/blob/master/windows/provision-unity.ps1) for more details.\r\n* To manage multiple Unity instances try to use one of:\r\n  * https://github.com/DragonBox/u3d\r\n  * https://github.com/Microsoft/unitysetup.powershell\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Funity-example-windows-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Funity-example-windows-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Funity-example-windows-vagrant/lists"}