{"id":20314310,"url":"https://github.com/normandy72/unity-sandclock","last_synced_at":"2026-05-07T12:35:37.567Z","repository":{"id":153902836,"uuid":"625661195","full_name":"Normandy72/Unity-SandClock","owner":"Normandy72","description":"How to create a sand clock in Unity. Based on Hamza Herbou 's tutorial.","archived":false,"fork":false,"pushed_at":"2023-04-09T21:51:40.000Z","size":1509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T12:46:18.789Z","etag":null,"topics":["unity","unity2d","unityui"],"latest_commit_sha":null,"homepage":"","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/Normandy72.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-04-09T19:50:25.000Z","updated_at":"2023-04-09T21:51:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"18341d25-5da6-4c2f-9343-9438460115c9","html_url":"https://github.com/Normandy72/Unity-SandClock","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/Normandy72%2FUnity-SandClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-SandClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-SandClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FUnity-SandClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Normandy72","download_url":"https://codeload.github.com/Normandy72/Unity-SandClock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818842,"owners_count":20025208,"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":["unity","unity2d","unityui"],"created_at":"2024-11-14T18:14:47.919Z","updated_at":"2026-05-07T12:35:32.546Z","avatar_url":"https://github.com/Normandy72.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instructions\n\n1. Create a __Canvas__, change its color.\n2. Create an empty __GameObject__ (rename to _SandClock_).\n3. In SandClock add an __Image__ (rename to _Holder_). Encrease SandClock's size.\n4. Check _SandClock_ sprite, change Sprite Mode to \"multiple\", slice this sprite.\n5. Set \"SandClock_0\" sprite as Holder's source image. Change Holder's size and color.\n6. Duplicate the Holder (rename to _Glass_), place it before Holder.\n7. Set \"SandClock_1\" sprite as Glass's source image. Change its color and size.\n8. Inside the SandClock create a new empty __GameObject__ (rename it to _Fill_).\n9. In Fill create an __Image__ (rename to _TopFillImage_).\n10. Set \"SandClock_2\" sprite as TopFillImage's source image, rotate it (180 degrees), change its size and color.\n11. Duplicate the TopFillImage (rename to _BottomFillImage_), rotate it (0 degrees).\n12. In the SandClock add Text field (place it to the upper part of the Glass).\n13. In TopFillImage and BottomFillImage set _Image Type_ to \"Filled\", set _Fill Method_ to \"Vertical\".\n14. In TopFillImage set _Fill Origin_ to \"Top\".\n15. Create a new C# script, add logic.\n16. Add script to SandClock.\n17. Create a new __Material__ (_SandDots_). Set Shader (Mobile -\u003e Particles -\u003e Alpha Blended). Set Texture (Sand).\n18. In _Sand_ sprite set _Wrape Mode_ to \"Repeat\", _Pixel per unit_ = 450.\n19. In Fill duplicate the BottomFillImage (rename to _SandDots_). Set its _Image Type_ to \"Tiled\". Set _Source Image_ (Sand). Set _Material_ (SandDots). Change its size. Place it before TopFillImage.\n20. Duplicate BottomFillImage (rename to _BottomMask_), replace it before SandDots. Add a __Mask__ component. Set a color same as a glass color. Set _Image Type_ to \"Simple\".\n21. Inside the BottomMask create an __Image__ (_SandPyramidImage_). Set _Source Image_ (SandPyramid). Change its color an size.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Funity-sandclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormandy72%2Funity-sandclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Funity-sandclock/lists"}