Hi,
I want to create a custom UI object that allow me to draw some basic sharm on the 2D screen.
I have found this subject https://forum.unity3d.com/threads/custom-mesh-rendering-under-ui-canvas.265700/ . At the end he explain how he have draw his triangle on the canvas.
I have tried to do the same thing ... but it doesn't work ...
Here the source code :
Custom UI object
I want to create a custom UI object that allow me to draw some basic sharm on the 2D screen.
I have found this subject https://forum.unity3d.com/threads/custom-mesh-rendering-under-ui-canvas.265700/ . At the end he explain how he have draw his triangle on the canvas.
I have tried to do the same thing ... but it doesn't work ...
Here the source code :
Code (CSharp):
- using System.Collections.Generic;
- using UnityEngine;
- {
- private...