Here is a simple example of a button fading an image out and fading in a different image on a button in Unity 3d. I have also included how to go to a new scene/level using the button with either index of the scene or by title of the scene.
Tag Archives: unity 3d
Here is an example of how to select a game object by touch using Unity 3d’s Physics Raycast. The first part is to find the game object that the user is touching with their finger. This is done by a raycast. If that is all you want to do then you can skip the inner ‘if statement.’ The next step is to get the finger’s position in pixels and then convert it to game world coordinates.
I been recently working with Unity 3D to build a Unity 3D game for a school project and for an android game. You can get a free version to create web based games but you will need to get paid version to go beyond that. I can not imagine a better game engine than Unity. It is very easy to learn, easy to build extra level, many built in tools and prefabs, plus you can easily move your game to different platforms (playstation3, android, web etc).
There is many tutorials online to get started so I will not bother explain how to get started. I will try though to explain some examples scripts that I used.