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

Draw Mousecursor but without using OnGUI?

$
0
0
Hello,

I was using old OnGUI before. But that does not work with my Oculus and is not recommended anymore.
So I Change everything to new UI.

For my invnentory and some other Scenes I Need to draw a Special texture exactly where the mouse is.

I am not sure if this is the way or totally nonsense:
I have a canvas and added an empty transform with a rawimage. I added it to my script as a gameobject with Name "MouseCursor".
First I tried:...

Draw Mousecursor but without using OnGUI?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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