I took the initiative to wait on more critical features and ended up working on the splash-screens for Wasco. (Obviously different teams will have different pace and due dates. I was able to afford taking this 'break'.) Below is a .gif of what I was able to do in approximately two hours time.
The end product. A cascade of splash screens working as intended.
It was a bit of puzzle solving since Unity has deprecated some of the older syntax but being such a popular and well maintained engine, documentation is almost never a problem. Below is a screenshot of the inspector for the script I wrote for this.
Inspector view for the Splash.cs script.
The script uses a coroutine to wait for a few seconds before fading in. Then it will fade in with the specified speed. Then it will wait as long as its specified show duration. After that the splash-screen will fade out with specified speed and once it reaches the life cycle of a splash screen it will activate the next splash screen in line if there's one specified.
Hope you enjoyed this, next up is more mindmaps and design compasses regarding Wasco.
PS: Unity now has a built-in splash system and since that came out I converted to using that.
No comments:
Post a Comment