1 year agoAll hi. It is transfer of article from the official blog of the Unity engine. In it the speech about a method of creation of the korutin, appeared in version 5.3 will go.
Among new brilliant opportunities of Unity 5.3 I found one small thing which was to me useful, and, I think, can be useful also to you. These are the custom korutina provided by the class CustomYieldInstruction. Thanks to it, you will be able very just to create own korutinny yield-operators. Let's consider it on a living example.
1 year ago
It is the second part of my article with shifted to the Left - design Tips and Tricks which the developer can use to increase the general quality of the game. This not step-by-step tutorial, but only the collection of the ideas and useful tips based on my personal experience. The first part of article was more oriented to a visual component of design of levels, in the same time we will talk about even more fundamental things, since prototyping and finishing with a pleytesting with analytics.
1 year ago
It is simple to reproduce a sound in Unity. It is necessary to create the AudioSource component to attach to it the sound file in the form of AudioClip and to cause audioSource.Play () from a script. Or even to put autoreproduction on during creation of object (Play on Awake).
Difficulties begin when sounds in game become much. They everything need to be placed, registered priorities. Sounds separately, music separately. At volume control of sounds and music separately too difficulties. It is possible to regulate, of course, the volume of different channels in AudioMixer, but it does not work in WebGL. And Webplayer is considered outdated now.
And if some sound repeats several times in a row (for example the player quickly presses the button and plays a click sound), then it is good that that did not break on the middle, and new began, without disturbing previous. Moreover and at inclusion of a pause sounds of game need to be put on a pause, and sounds there is no menu. From a box such opportunity in Unity is, but is for some reason available only from a script and not all know about it.
Generally there is a wish simple and convenient SoundManager which creation I also will describe. It will not be suitable for large projects, and here for prototypes and small games quite.
1 year ago
In this article I will tell about how to reach here such effect:
In fact, the shader about which the speech will go works as post-effect for the camera or the built-in blur and vignette filters in Unity. It accepts the input image (more precisely, RenderTexture) and brings him with the imposed effects.
1 year ago
On Habrakhabr there are a lot of indi-developers, some of them should be engaged in a varying degree shifted to the Left - design. Within the last several months I without budging from a place worked on about fifty different game levels, and would like to share the experience. In plans to write two articles with effective Tips and Tricks which you can use to increase quality of your game. This not step-by-step tutorial, but only collection of ideas and useful tips.
Though support of Unity in Consulo also appeared at the end of 2014 (the first kommit) — the majority of opportunities appeared in 2015. Below significant features which were implemented are described:
You remember in the childhood, in an animated cartoon welcome screen about ducklings there was such moment when greedy Scrooge takes something valuable in a vault then a floor begins to collapse, and he together with plemyashkami-ducklings flees in all can not to die … Stop. And it is interesting mechanics for mobile game!