Author Topic: FEATURE REQUEST: UIMesh  (Read 5777 times)

Wahooney

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
FEATURE REQUEST: UIMesh
« on: February 20, 2014, 03:08:12 PM »
I would like to be able to make mesh elements that must layer correctly with other UI elements. I know you can change the mesh's render queue and all that, but I'm looking for a more integrated solution.

I tried writing my own widget using OnFill, but having all geometry quad-based is not a good thing.

Hell, give me a switch to change UIGeometry from quad- to tri-based and I'll be a happy chap :D

Possible, not possible?

The goal is essentially to replace sprites with vertex-coloured meshes.

Ramble ends here :P

Wahooney

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
Re: FEATURE REQUEST: UIMesh
« Reply #1 on: February 22, 2014, 09:15:05 AM »
Practical example:

https://dl.dropboxusercontent.com/u/24158788/Unity/UIMesh.unitypackage

That lets you load a mesh and render it to your UI, there are limitations, where the mesh is always flat, it doesn't like overlapping geometry, etc. but it's a pretty good start and in my particular case (and in many other cases, I'm sure) this will be more than sufficient.

I'd just prefer it if I didn't have to waste that vertex and face and all the other verts that need to be doubled.