{"id":23335015,"url":"https://github.com/stefanocecere/gamelab_ar_unity","last_synced_at":"2026-04-30T10:06:21.830Z","repository":{"id":149094698,"uuid":"268305283","full_name":"StefanoCecere/GameLab_AR_Unity","owner":"StefanoCecere","description":"Game Lab for Augmented and Mixed Reality with Unity","archived":false,"fork":false,"pushed_at":"2023-11-24T19:06:50.000Z","size":73522,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T15:54:36.500Z","etag":null,"topics":["arcore","arfoundation","arkit","augmented-reality","examples","gamedev","gamelab2042","mixed-reality","unity"],"latest_commit_sha":null,"homepage":null,"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/StefanoCecere.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}},"created_at":"2020-05-31T15:12:43.000Z","updated_at":"2025-02-23T09:05:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cdc99f0-f823-4146-aac3-74cfa0c0df37","html_url":"https://github.com/StefanoCecere/GameLab_AR_Unity","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/StefanoCecere%2FGameLab_AR_Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AR_Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AR_Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanoCecere%2FGameLab_AR_Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanoCecere","download_url":"https://codeload.github.com/StefanoCecere/GameLab_AR_Unity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247651997,"owners_count":20973544,"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":["arcore","arfoundation","arkit","augmented-reality","examples","gamedev","gamelab2042","mixed-reality","unity"],"created_at":"2024-12-21T01:15:26.507Z","updated_at":"2026-04-30T10:06:16.789Z","avatar_url":"https://github.com/StefanoCecere.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AR demo lessons\n\nUnity version used: 2021.2.x\n\nsupported Android devices: https://developers.google.com/ar/discover/supported-devices\niOS: iPhone o iPad con iOS \u003e= 12.0\n\n---\n\ncreo Prefab\n\naggiungo package ARFoundation e ARcore\n\ncreo Prefab Plane -\u003e\nEmpty\nAR Plane\nAR Plane visualizer\nmesh filter\nmesh rendererd\nLInerendered (0,01) e no world space\ncreo materiale tranparent\n\npoi script ARPlace\n\n```\nusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing UnityEngine.XR.ARFoundation;\nusing UnityEngine.XR.ARSubsystems;\n\nnamespace MyDemo\n{\n    public class ARPlaceOnTap : MonoBehaviour\n    {\n        public GameObject gameToInstatiate;\n\n        private GameObject spawnedObject;\n        private ARRaycastManager raycatManager;\n        private Vector2 touchPosition;\n        static List\u003cARRaycastHit\u003e hits = new List\u003cARRaycastHit\u003e();\n\n        private void Awake()\n        {\n            raycatManager = GetComponent\u003cARRaycastManager\u003e();\n        }\n\n        void Update()\n        {\n            if (Input.touchCount \u003e 0) {\n                touchPosition = Input.GetTouch(0).position;\n\n                if (raycatManager.Raycast(touchPosition, hits, TrackableType.PlaneWithinPolygon)) {\n\n                    var hitPose = hits[0].pose;\n\n                    if (spawnedObject == null) {\n                        spawnedObject = Instantiate(gameToInstatiate, hitPose.position, hitPose.rotation);\n                    } else {\n                        spawnedObject.transform.position = hitPose.position;\n                    }\n                }\n            }\n\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanocecere%2Fgamelab_ar_unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanocecere%2Fgamelab_ar_unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanocecere%2Fgamelab_ar_unity/lists"}