- Home /
Question by
unity_yy1oy1imuIiiJw · Oct 18, 2017 at 03:36 PM ·
texture2dmaskareahighlighting
Highlighting parts of a Texture
Good Evening,
I am lLooking for the best practical way to define some "subareas" on a Texture for a GUIImage to deteckt a mouseover on specific parts on that Texture and to highlight that subarea. Just think of a normal card in a cardgame where you would mouseover a symbol or number or a colored section and it would highlight this area on the card.
I tried multiple layers of textures with transparency but it seems like its way too complicated of a solution to manage all these "texture masks" and rotation becomes a real problem if i define something like "if mouse.x < 45 && mouse.y < 30" especially on multiple layers of textures.
I hope you guys maybe have some better ideas?
Comment