RSS

Tag Archives: GUI

Unity: Detect GUI Window Created/Closed Event


On StackOverflow, someone asks how to detect the GUI Window Created/Closed Event, which Unity3D does not ship an off-the-shelf solution.

Below is my solution to this problem: to use property setter to handle this. Here is the sample code:

enter image description here

Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on June 11, 2015 in Programming, Unity 3d

 

Tags: , , , , , , , , , , , ,

Simple Line Chart in Unity


Just took 1 day and implemented the line chart in Unity3D. Below is a demo. It was built using Unity GUI and Graphic.DrawTexture() calls.

Happy coding!

 
2 Comments

Posted by on November 16, 2014 in Programming, Unity 3d

 

Tags: , , , , , , ,

Unity3D: put 3D objects above GUI surface


The default rendering results for GUI objects such as GUI textures, buttons, labels etc. are that they are overlaied above 3D views.

To do the opposite, for instance, make 3D view overlaied upon GUITextures, one can user layers and multiple cameras to achieve this.

  • Create a GUITexture object: in menu:  GameObject  arrow, dash, right icon  Create Other  arrow, dash, right icon  GUI Texture, let’s name it BackgroundTexture
  • Drop a 3D file, e.g. an obj file to the scene

image

Read the rest of this entry »

 
1 Comment

Posted by on November 5, 2013 in Programming, Unity 3d

 

Tags: , , , , , , , , ,