Howdy! To watch this entire Gametutor course please Register  or log in

Creating a Vertex Painter
in Unity 3D
Buy On Udemy
Course Description
Have you ever wondered how those amazing tools on the Unity Asset Store are created? Have you ever needed a Vertex Painter tool for your own Game development projects? Then this course is just for you!
Throughout this course we will take you step by step through the creation of your very own Vertex Painter tool inside of Unity3D! The tool that we create together will allow you to paint vertex colors, sculpt geometry, save out colors to color palettes and show you have to create a brush that control falloff, opacity, and size.
This course will also walk you through how to customize your Vertex Painter UI, and how to deal with issues like saving the meshes that you paint and updating the collision mesh.
By the end of this course you will have gained the knowledge and confidence to build your own vertex painter tool inside of Unity3D, and other tools that your game development projects might need!
Course Details
Difficulty: Intermediate
Software: Unity 5.1
Total Lessons: 12 Lessons
Running Time: 02:12:23
Date: 7/4/15
Course Files
This is a premium course and source files are available only to Rockstar members. Please Log In or Upgrade your account to unlock these files.
Locked Source File Icon
File Name:
File Size: 1.09 MB
Download the Vertex Painter Unity package with complete code base so that you can use and or extend its functionality for future projects.
Course Lessons

1. Setting up the DEV Environment

Lesson 11, Adding Doors to our Walls
Before we begin the development of our Vertex Painter Tool for Unity 3D, we need to get a few things set up first. We will walk you through the creation of your development environment by setting up a proper folder structure for tools development, and discussing the required folder names that Unity looks for when developing tools.

2. Building the Base Editor Window

Lesson 11, Adding Doors to our Walls
With our Development Environment all set up, lets start out our tool development by creating the base Editor Window, so we have a working editor for our Vertex Painter tool. This will lay in the framework and show how to build a basic Editor Window in Unity 3D.

3. Working with Editor GUI - Part 1

Lesson 11, Adding Doors to our Walls
Editor Tools rely heavily on a user experience. If the end user can’t use the Editor, then we have a useless tool. Ensuring that the User experience is clean and easy to use, we need to learn a bit about how to create our own Editor GUI, using Unity’s Editor GUI classes.

4. Working with Editor GUI - Part 2

Lesson 11, Adding Doors to our Walls
Now that we have discovered how to make your most basic Editor UI elements, lets take it a step further and see how we can utilize Unity’s GUI Styles to give even more custom control over those UI elements. By the end of this lesson you will have gained the knowledge necessary to create some very dynamic Editor UI’s in Unity 3D.

5. Working with Scene View GUI

Lesson 11, Adding Doors to our Walls
In order for us to create an interactive type tool inside of Unity3D, we need to gain a better understanding of how we can manipulate and override the Scene View so we can draw our own GUI for our Vertex Painter. In this lesson we are going to lay in the foundation for us to do just that. This will give us the power to draw our own custom brush graphics in the next few lessons!

6. Getting User Inputs

Lesson 11, Adding Doors to our Walls
In lesson 6 we will begin the process of getting inputs from the user, so they can control the different aspects of our vertex painter tool. We will code up the necessary methods in order to capture inputs such as key presses and mouse actions to allow the user to interact with the tool and drive the user experience.

7. Detecting a Paintable Mesh

Lesson 11, Adding Doors to our Walls
In order for our vertex painting tool to paint vertex colors, we need to detect if the mouse is over a mesh or not. Without this core component it would be impossible to apply vertex colors to a mesh through the use of our tool.

8. Taking control of the Scene View

Lesson 11, Adding Doors to our Walls
Before we go any further with our Vertex Painter we need to make sure that the scene view does not allow us to pick objects, or drag select objects, and we also want to turn off any transform gizmos. This will allow the user to paint freely, without the default Unity controls getting in the way.

9. Adding in Brush Controls

Lesson 11, Adding Doors to our Walls
With our Vertex Painter almost ready to go for actually painting color, lets add in our brush controls, so we can give control over the brush size, the opacity, and the falloff.

10. Getting access to the Mesh

Lesson 11, Adding Doors to our Walls
In lesson 10 we are going to look at how to get access to our mesh component without having to explicitly assign it to the editor tool. This type of dynamic search and retrieve functionality is key to a smooth user experience.

11. Painting Vertex Color

Lesson 11, Adding Doors to our Walls
With our complete editor system up and running now we can add in the code we need to paint our vertex colors.

12. Programming Falloff and Custom Lerping

Lesson 11, Adding Doors to our Walls
To close out this course, we are going to cover the basics of programming a Linear Falloff and a custom Color Lerping method. This will give our Basic Vertex Painter a bit more polish before we get into some more math heavy lessons in Creating a Vertex Painter Part 2.