# Mesh pencil 3d mesh generator from 2d draw data

<https://drive.google.com/file/d/1MvkB5UEQ9SvoJYbM5hp1o2-ZbsjW7vSv/view?usp=sharing>\
\
<https://assetstore.unity.com/packages/tools/modeling/mesh-pencil-3d-mesh-generator-from-2d-draw-data-179269>\
\
&#x20;&#x20;

![](https://2688793952-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFj2vg4QJR2sRMIhR35%2F-MNOi8UCwIFGOBNBpb_T%2F-MNOjdQxYNXiTNtGeUkH%2FMeshPencil.png?alt=media\&token=bc8bfd45-ece9-427b-86bb-6062b7b75418)

**Mesh pencil** is an asset for unity which converts your 2D input by drawing to 3D mesh.

The asset works in realtime play mode and not able to use it in the editor scene.

Is not require special libraries and packages for installing.\\

**Possibilities**

Configure draw canvas area

Easy setup a pixel canvas with custom sizes by configuring pixels quantity in a row and columns amount.

Control a single pixel dimension, sprite and colors for your style and design requirements\\

**Common input commands**

The input controller has base functions for painting, erasing, brush size control.

You could customize the cursor draw/erase mode sprites.

Supports input from the mouse for pc and by touches + UI elements from mobile devices.\\

**Creating the collider**

Rigid body component is not supports non-convex mesh collider.

For physics features , the asset able to create a dynamic “complex box collider”. \\

**Save/Load**

There are methods for save/load drawn data into a file which will be placed in the persistent data folder.

It helps load lightweight data files in realtime.&#x20;

Especially useful for multiplayer mechanics\\

**Supported platforms**

-The asset supports most popular platforms :

-PC (WINDOWS, MAC, LINUX)

-MOBILE(ANDROID, IOS)

-CONSOLE (XBOX, PS4)

-WEB

-VR/AR\\

**Update 1.1**\\

\- Pivot definer component

Creates and set pivot on drawn mesh borders

\- Render camera support

Pixel canvas automatically has same layer like the MeshPencil

\- Public getters/setters for main controller

\- New public events in MeshPencilController
