Here we will use the coroutine to get the desired animation we want. First, we need a reference to the Sprite Mask, a delay variable, and lastly an array of Sprites. ![]() ![]() Also, open the script to input some logic and animate our Sprite Mask.īefore starting we need some variables and references. Now create a new Game Object and attach a Sprite Mask Component and add a new Script with the name of “Sprite Mask Animation” or anything suitable. For this example, Drag and Drop the “Day BG” and change the Mask Interaction to “Visible Outside” and then Drag and Drop the “Night BG” and change the Mask Interaction to “Visible Outside” ![]() Place Some Game Objects with Mask Interaction as “Visible Inside” that we want to show inside the Sprite Mask and others to Visible Outside. Here we need some Game Objects to showcase inside the Sprite Mask and others to show outside of it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |