{"id":31817709,"url":"https://github.com/Crossmint/unity-example","last_synced_at":"2025-10-11T10:23:34.650Z","repository":{"id":233207019,"uuid":"619361207","full_name":"Crossmint/unity-example","owner":"Crossmint","description":"Unity menu demo using Crossmint custodial wallets","archived":true,"fork":false,"pushed_at":"2025-06-18T08:38:03.000Z","size":1356,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T00:17:41.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ShaderLab","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/Crossmint.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}},"created_at":"2023-03-27T01:35:21.000Z","updated_at":"2025-06-18T13:07:28.000Z","dependencies_parsed_at":"2024-04-14T16:48:12.718Z","dependency_job_id":"b458418c-7ebf-458c-a23e-046945139b7b","html_url":"https://github.com/Crossmint/unity-example","commit_stats":null,"previous_names":["crossmint/unity-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Crossmint/unity-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crossmint%2Funity-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crossmint%2Funity-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crossmint%2Funity-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crossmint%2Funity-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crossmint","download_url":"https://codeload.github.com/Crossmint/unity-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crossmint%2Funity-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006851,"owners_count":26084204,"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-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2025-10-11T10:23:28.437Z","updated_at":"2025-10-11T10:23:34.646Z","avatar_url":"https://github.com/Crossmint.png","language":"ShaderLab","funding_links":[],"categories":["Starter Code"],"sub_categories":["Wallets"],"readme":"# unity-example\nSetup a Unity demonstration utilizing Crossmint in just a few minutes!\n\nThis example showcases Crossmint's Custodial Wallets and Minting ability.\n\nThis isn't a game but rather just a simple menu to demonstrate the ability you have using Crossmint in your own personal game/project.\n\n## 1. Grab your Crossmint keys\nWe have two environments, one for testing and one for release. These environments are selected based on the subdomain you select. `staging.crossmint.com` is the testing environment and `www.crossmint.com` is the release environment. Throughout this tutorial, we will be using the staging subdomain (testing environment). These steps are identical for either environments with the only difference being the domain you're using.\n\n### In the Crossmint console\n\n1. Go to [staging.crossmint.com/console](https://staging.crossmint.com/console) and follow the steps to create an account.\n\n2. Navigate to [API keys](https://staging.crossmint.com/console/projects/apiKeys) and click on New API Key. Then check the `nfts.mint`, `wallets.read`, `wallets.create` and `wallets:nfts.read` scopes -- this will give your API key permission to create and manage crypto wallets and mint for your users. Finally save your new key and copy the `CLIENT SECRET` and `Project ID` values for later.\n\n### On your machine\n\nOpen the `BackendServer` project, rename the `.env.template` file to `.env`.\n\nIn the `.env` file, fill in the fields with your information gathered from the Crossmint console (`CROSSMINT_X_CLIENT_SECRET` and `CROSSMINT_X_PROJECT_ID`).\n\nThe result should look something like this:\n\n```bash\nCROSSMINT_BASEURL=https://staging.crossmint.com\nCROSSMINT_X_CLIENT_SECRET=YOUR_CROSSMINT_CLIENT_SECRET_HERE\nCROSSMINT_X_PROJECT_ID=YOUR_CROSSMINT_PROJECT_ID_HERE\nCROSSMINT_CHAIN=\"polygon\"\nCROSSMINT_COLLECTION_ID=\"default-polygon\"\nPORT=3000\n```\n\nYou can now modify the chain, collection and port to your desired values.\n\nAnd then save.\n\nPlease note: make sure the client secret doesn't get leaked, as it would allow others to create wallets for your users.\n\n## 2. Configure the BackendServer project\n\n1. Open `index.js` and configure the project based on the instructions presented in the authentication method on line 9.\n\n2. Start the server by running the following command in the `BackendServer` directory:\n\n```bash\nnode index.js\n```\n\n## 3. Configure Unity\n\n1. Open the project in Unity Editor (the project was created on 2021.3.21f1)\n\n2. Open the C# project (Assets -\u003e Open C# Project)\n\n3. Open `Config.cs` and update the `BackendServer` url.\n\n4. Ensure the `BackendServer` is running and start the game!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCrossmint%2Funity-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCrossmint%2Funity-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCrossmint%2Funity-example/lists"}