Wednesday, 2 September 2015

How it Works User Interface 4.6 in Unity


Working With Unity UI 4.6



Unity has been hard at work getting the new UI system ready for release in Unity 4.6.

The UI System allows you to create User Interface (UI) fast and intuitively.

This is an introduction to the major features of Unity’s new UI systems.

Unity 4.6 has a newly added feature UI in it. Using Unity UI we can manage our game
User Interface.

Using React Transform tool, we can manage scaling, position and rotation of UI
Element and Pivot tool manages pivot point of UI elements

The UI system in Unity includes a variety of tools for this purpose that can be in various ways.

UI 4.6 provides many built-in components to develop the user-friendly interface.

Read more this blog here: How it Works with Unity UI 4.6


Button Click Effect in UNITY 4.6 UI Using Scripting




In this unity 4.6 tutorial, we all take a look at the basics of using the new UI to create a “world space” text appear via a scripted trigger.

You can give click effect to a button through animation or scripting.

There are following variables in the inspector for Button Click script.
-    First is used to set a scale of a button at a start.
-    Second is used to set the scale or the button when it’s being clicked.



Dynamic Scroll View in Unity 4.6 UI 



This script, when attached to a panel turns it into a scroll view.

You can then attach Dynamic Scroll View to colliders within to make it dynamic.

The images to assign “Dynamic Scroll View” script to panel scroll view game object.

Drag and Drop all the other required objects to that script in the inspector.

A simple scrollbar is used here to scroll the content.

The game object named ‘item’  is used as the content of the scroll view.
Panel scrollbar game object contains Scroll-Rect and Scroll Content contains grid layout group component 

Read more this blog here: Dynamic Scroll View in Unity 4.6 UI

No comments:

Post a Comment