Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Custom UI object

$
0
0
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 :
Code (CSharp):
  1.  
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. class UILineDrawer : MonoBehaviour
  6. {
  7.     private...
Custom UI object

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>