Unity3d: How to create a sliding(by touch) list? - unity3d

I need create a sliding(by touch) list in my mobile game. It may be something like in the following picture:
By touching and sliding downward, the rest of the list would be shown.

Add ScrollRect component to the GameObject you want to make scrollable. Here's Unity official tutorial about how to use it.

Here there is a youtube tutorial how to make a basic sliding menu.
For list element, probably you will need more than a button. If this is the case, you can create an empty object name "listItem" and design a list item with texts, buttons, images etc. After that turn this object into a prefab.Then you can add element layout to the listItem instead of button as seen in the video. Here there is an example screenshot:

Related

Delete button for object - MRTK

I have a question regarding Unity and mrtk. I need to create an object, which can be deleted via button push. This button should be attached to the object. Now there is the app bar which can be attached to the object and which is very convenient because the buttons are only displayed on the side of the object you currently look at. However the app bar does not seem to work properly with the new bounding box and after deactivating the adjust button on it. So my question basically is, how do i make a button which is attached to the object, hovers on it and is only displayed on the side of the object i am currently looking at? The script of the app bar is very poorly commented, so i cannot figure out which part is responsible for making the button appear on the correct side and correspondingly how to write a script displaying the delete button only on the correct side (following the direction i am currently looking at).
To solve this problem you need a free Canvas that attaches to your object. This Canvas should be adjusted to the dimensions of the object and always look at the camera. To do this, first create a canvas and set RenderMode to World Space, Remember that you have entered the Event camera reference.:
After completing the canvas, make a button like the one below and place it in the body. In this section, adjust the dimensions so that you want to appear in near of your main object.
Finally, I suggest using Look At Constraint to match the canvas and the view to the camera. Insert the camera as source and fix Constraint settings it as shown below.
Example Result

How to Show scrollable panel in Unity3d

I'm trying to show a ui panel using unity3d ,I have a main camera scene after i click a button ,i want my scrollable panel to show up
just like this
after i click the menu button i want the scrolling ui to appear like this.
It'd be great if someone could point out some kind of a tutorial that would cover this.
You need the following:
Image component - This is used to represent the items you want
to display
Grid Layout Group component - This is used to arrange those
image components you want to display.
Content Size Fitter component - This is used to make sure
that those Images fit in the Grid Layout.
The video from here should show you how to use these 3 together to get what you are looking for. To detect which Image is clicked, see this post.

I need glowing outline around button in unity

I am working on a project in unity5, while I am making a menu contain buttons, I need button to make glowing outline, need help in this regard.enter image description here
same in the picture, I need button like this in my Unity 5
if you are using canvas you can do that without using any functions or events it can be easily done select button in inspector you will see button (script) component set transition to sprite swap and drop the desired sprite in pressed sprite box.

Show a select emoji screen

I am doing a game with Unity3D in which there are 2 players using the same mobile device in turns to play.
I am adding a Settings scene in which each players enters his/her name and can select an Emojicon to use as an avatar in the game.
I have already imported the png file in to my Resources folder and cut it to 80 sprites using the sprite editor called emojicons1_0 to emojicons1_79.
What I need is to enable the players to change the default emojicon in the Settings if they touch the existing emojicon or a button "Change" beside it.
I was thinking of showing a scroll list from the asset called Gamestrap UI and display an array of 4 x 20 emojicons, and they can select there the desired emojicon. I don't know how to do this, and I appreciate any help. I am open to other suggestions of course.
Thanks in advance for any help.
if you are using uGui, there is a number of ways to do it. I would simply create a view prefab, which will composed of scroll list with grid layout inside. It will have a script attach, which will initialise the view by loading textures/sprites and set it to image component of an instantiated button prefab, which represents one icon to select. Then view has callback and on click simply call it with selected image.
Here is references:
https://unity3d.com/learn/tutorials/modules/beginner/ui/ui-scroll-rect
https://docs.unity3d.com/ScriptReference/UI.GridLayoutGroup.html

Making items draggable

How are objects made draggable on iphone?
How is an item/object moved by the user. e.g. apps can be moved on the homescreen and they icons follow the users finger.
How can e.g. a tableview cell contents be moved if the user holds down on it and then moves their finger?
What controls the movement of these objects to follow a users finger?
There is no built-in support of dragging controls and you need to implement one. My answer to another question is related and might help.
Dragging values onto labels