{"id":14960607,"url":"https://github.com/totem-gdn/totemgeneratorunity","last_synced_at":"2025-10-24T18:32:06.554Z","repository":{"id":36979163,"uuid":"464206708","full_name":"Totem-gdn/TotemGeneratorUnity","owner":"Totem-gdn","description":"Totem Core plugin for Unity","archived":false,"fork":false,"pushed_at":"2023-09-15T14:33:44.000Z","size":3952,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-23T11:03:06.241Z","etag":null,"topics":["totem","unity","unity-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Totem-gdn.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}},"created_at":"2022-02-27T17:34:56.000Z","updated_at":"2023-11-15T12:39:25.000Z","dependencies_parsed_at":"2023-02-15T10:16:12.755Z","dependency_job_id":null,"html_url":"https://github.com/Totem-gdn/TotemGeneratorUnity","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totem-gdn%2FTotemGeneratorUnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totem-gdn%2FTotemGeneratorUnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totem-gdn%2FTotemGeneratorUnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Totem-gdn%2FTotemGeneratorUnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Totem-gdn","download_url":"https://codeload.github.com/Totem-gdn/TotemGeneratorUnity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867815,"owners_count":16554365,"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":["totem","unity","unity-plugin"],"created_at":"2024-09-24T13:22:36.102Z","updated_at":"2025-10-24T18:32:03.250Z","avatar_url":"https://github.com/Totem-gdn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Totem Core for Unity!\n\nThis Package enables interaction with Totem services and assets in Unity.\n\n## Requirements\n\n- Unity Editor 2021.3.7f1 or greater\n\n## Instructions\n\nYou can install this package in three ways!\n\n### A) Package Manager (GIT Url)\n\nThe suggested way to install this package is through the \"Unity's Package Manager\", with our GIT url.\nThis way, you will be notified once new versions get released, and you will be able to download them directly from the Unity Editor.\n\n1/ **The GIT url you need to add to the Package manager is the following** (copy and paste it): **https://github.com/Totem-gdn/TotemGeneratorUnity.git**\n\n2/ In the Unity editor, open **Window -\u003e Package Manager** to open the Package Manager, then click **+ -\u003e Add package from git URL... -\u003e paste the link above**.\n\n**Still having trouble this way?**\n\u003cbr\u003e\nYou can always check Unity's docs for how to install from git: https://docs.unity3d.com/Manual/upm-ui-giturl.html\n\n### B) Manual Install\n\nYou can also install this package manually, by copying the source files directly into your project's assets folder. (You'd have to do this every time there is a new update.)\n\n### C) Using .unitypackage from our \"Release\" tab\n\n1/ Head over to our releases tab: https://github.com/Totem-gdn/TotemGeneratorUnity/releases.\nDownload the requested version .unitypackage.\n\u003cbr\u003e\n2/ In the Unity editor, open **Assets -\u003e Import Package -\u003e Custom Package... -\u003e navigate and select downloaded package** and Voilà!\n\n**You can check the manual: https://docs.unity3d.com/Manual/upm-ui-giturl.html**\n\u003cbr\u003e\n\n## Building for Android and IOS\n\nBefore building the application for Android/IOS you need to generate a deep link which can be easily done by going to **Window \u003e Totem Generator \u003e Generate Deep Link** and typing in your gameId\n\n---\n\n## Samples\n\nYou can import samples through \"Samples\" menu in the Unity package details. **Window -\u003e Package Manager -\u003e Totem Generator for Unity -\u003e Samples**\n\n### Totem Legacy Records Demo\n\nA sample that demonstrates how to do a basic plugin setup, retrieve avatars and use Legacy records.\n\n---\n\n## Examples\n\n### User login and avatars retrieval\n\n```csharp\nusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing TotemEntities;\nusing TotemEntities.DNA;\nusing TotemServices.DNA;\n\npublic class test : MonoBehaviour\n{\n    ///Id of your game\n    ///Used for legacy records identification\n    private string _gameId = \"TotemDemo\";\n\n    // Start is called before the first frame update\n    void Start()\n    {\n        //Initialize TotemCore\n        TotemCore totemCore = new TotemCore(_gameId);\n\n\n        //Authenticate user through social login in web browser and get user's assets\n        totemCore.AuthenticateCurrentUser((user) =\u003e\n        {\n            //Check if login was canceled\n            if (user == null)\n            {\n                return;\n            }\n\n            //Using default filter with a default avatar model. You can implement your own filters and/or models\n            totemCore.GetUserAvatars\u003cTotemDNADefaultAvatar\u003e(user, TotemDNAFilter.DefaultAvatarFilter, (avatars) =\u003e\n            {\n                foreach (var avatar in avatars)\n                {\n                    Debug.Log(avatar.ToString());\n                }\n            });\n        });\n\n    }\n\n    public void AddLegacyRecord(object asset, TotemAssetType assetType, int data)\n    {\n        totemCore.AddLegacyRecord(asset, assetType, data.ToString(), (record) =\u003e\n        {\n            Debug.Log(\"Legacy record created\");\n        });\n    }\n\n\n    public void GetLegacyRecords(object asset, TotemAssetType assetType, UnityAction\u003cList\u003cTotemLegacyRecord\u003e\u003e onSuccess)\n    {\n        totemCore.GetLegacyRecords(asset, assetType, onSuccess, legacyGameIdInput.text);\n    }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotem-gdn%2Ftotemgeneratorunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotem-gdn%2Ftotemgeneratorunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotem-gdn%2Ftotemgeneratorunity/lists"}