Giter VIP home page Giter VIP logo

unity-sandclock's Introduction

Instructions

  1. Create a Canvas, change its color.
  2. Create an empty GameObject (rename to SandClock).
  3. In SandClock add an Image (rename to Holder). Encrease SandClock's size.
  4. Check SandClock sprite, change Sprite Mode to "multiple", slice this sprite.
  5. Set "SandClock_0" sprite as Holder's source image. Change Holder's size and color.
  6. Duplicate the Holder (rename to Glass), place it before Holder.
  7. Set "SandClock_1" sprite as Glass's source image. Change its color and size.
  8. Inside the SandClock create a new empty GameObject (rename it to Fill).
  9. In Fill create an Image (rename to TopFillImage).
  10. Set "SandClock_2" sprite as TopFillImage's source image, rotate it (180 degrees), change its size and color.
  11. Duplicate the TopFillImage (rename to BottomFillImage), rotate it (0 degrees).
  12. In the SandClock add Text field (place it to the upper part of the Glass).
  13. In TopFillImage and BottomFillImage set Image Type to "Filled", set Fill Method to "Vertical".
  14. In TopFillImage set Fill Origin to "Top".
  15. Create a new C# script, add logic.
  16. Add script to SandClock.
  17. Create a new Material (SandDots). Set Shader (Mobile -> Particles -> Alpha Blended). Set Texture (Sand).
  18. In Sand sprite set Wrape Mode to "Repeat", Pixel per unit = 450.
  19. 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.
  20. 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".
  21. Inside the BottomMask create an Image (SandPyramidImage). Set Source Image (SandPyramid). Change its color an size.

unity-sandclock's People

Contributors

normandy72 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.