Sketch

Sketch transforms your game into a notebook with a simple click.

DEMO  UNITY

Editor.

Once installed, select the camera of the scene and add the component ‘Sketch‘. When you add it you will see something like:

With ‘Strength‘ (1) you can select the strength of the effect. You can vary the intensity with ‘Intensity‘ (2), keep in mind that the higher the intensity, the lower the performance. You can change the intensity of the lines in ‘Definition‘ (3).

In ‘Mode‘ (4) you can select where the effect is drawn. With ‘Screen‘ the entire screen will be render with ‘Sketch’.

With ‘Object‘ mode you can select the GameObjects to which you want to apply the effect. Simply add the ‘Sketch Object‘ component to the selected GameObjects.

Paper‘ (5) adds the texture of a paper to the effect, it is only available in ‘Screen‘ mode. You can modify the number of wrinkles or cells with ‘Cell Count‘ (6). The lower they are, the better the performance. You can change the size of these cells in ‘Cell size‘ (7) and their intensity in ‘Cell intensity‘ (8).

The position and color of light that illuminates the cells of the paper, you can modify it in ‘Light position‘ (9), ‘Light color‘ (10) and ‘Ambient color‘ (11).

By activating ‘Color‘ (5), you can change various aspects of the final color of the effect.

By activating ‘Optimize mobile and web‘ you can enable some optimizations that can improve performance on these platforms.

Pressing at ‘[doc]’ (14) will go to the online help and in the ‘Reset‘ (15) button some parameters will return to their default values.

UI.

You can also use ‘Sketch‘ in your interface (UI). ‘Sketch‘ supports UI / Image, so you can use it in all your UI. If for example you have this image:

Normally this would be several UI / Image, but to simplify we will treat it as one.

The first thing you have to do is create a new material and change the shader to ‘Ibuprogames / UI / Sketch / Image‘:

Finally drag the material to the material of your UI / Image:

Code.

All code is inside the namespace ‘Ibuprogames.SketchAsset‘ and main component is ‘Sketch‘. So if you want to use it you must first import its namespace:

using Ibuprogames.SketchAsset;

If ‘myCamera‘ is a valid camera and you want to add the effect, you should do something like:

Sketch sketch = mycamera.gameObject.AddComponent<Sketch>();

All the code are well commented, I recommend reading the code if you want more information.

Any questions or suggestions you have, we will be happy to answer you in our mail:

You Might Also Like

No Comments

Leave a Reply