muslimbrazerzkidai.blogg.se

Unity 3d tutorial
Unity 3d tutorial







unity 3d tutorial

I will give my GUI texture object the same name as my image file, ‘gui_gems’. Next order of business is to rename the object to something more suitable, change the object name in the inspector panel and hit Enter. Step4: Assign a texture to the GUI Texture object

unity 3d tutorial

You will also notice that ‘UnityWatermark-small’ has been added to the Hierarchy window.

unity 3d tutorial

Once you do this, Unity will by default add the Unity logo to the game scene, If you click the ‘Game’ tab you should now see the Unit圓D logo in the center of the screen. Go to and select GameObject > Create Other > GUI Texture In Unit圓D, 2D elements must be added to the scene just like any other game object. In your project tab create a folder called ‘GUI’ and drag in your new graphic files. Open your existing project, or create a new one. *Note – Adding a slight drop shadow can be a nice way to make your graphics stand out. Mine are named gui_balls.png and gui_gems.png When your graphics are completed Export them individually as PNGs on a transparent background (pngs retains transparency and are lossless). So I want to track the players lives (marbles) and how many gems have been collected. The game I am using this menu in is a marble game where the player rolls around picking up gems. Making sure the backing graphic doesn’t clash with the underlaying graphic styles in your game, It should stand out, and be easy to identify. It’s nice to create some kind of backing for the text to sit on top to make it easy to read. Using your favourite graphics tool such as Photshop, create the assets you would like to bring into your game. Although it should be noted that their is a good reason such 3rd party tools exist, as at the time of this tutorial, 2d interface and menu systems in Unity leave much to be desired… Both of these 3rd part solutions use Adobe Flash to create the UI elements, and are said to be quite intuitive, although I haven’t yet had the opportunity to try them myself. There are currently several 3rd party UI building solutions for Unity, such as Autodesk’s ScaleForm or UniSWF.

#Unity 3d tutorial how to#

In this tutorial I will be explaining how to set up a simple GUI (graphical user interface) or HUD (heads up display), which shows the lives/score of a player. Unit圓D allows developers to create 2D and 3D interfaces.









Unity 3d tutorial