So I'm making a top-down tank shooter game and I want to make a better reloading system than it was before. So I came to the idea that I need some king of progress bar. I knew how to make it so I started doing it. The problem is that it doesn't…
What happened
When trying to change the text of a button or text, unity editor crashes.
How we can reproduce it using the example you attached
Create a new project.
Add Text (GameObject->UI->Text)
Crash occurs when you click to change the…
I am just starting with unity and having problems to show/hide menu panel with a button click.
I am using unity 5 and able to do it by playing On Click() button parameter right in the inspector:
I click "+", drag my panel in object field, and the…
I'm having a lot of trouble trying to develop a loader that when a button gets clicked it takes an array of textures and populates them into a grid layout (and when another button is clicked it removes the current textures and replaces them with a…
I have like 10 buttons on my UI and I gotta check which one was touched. I was using the following logic and it was working fine, but now I am getting this error for some reason:
NullReferenceException: Object reference not set to an instance of an…
I'd like to know how I can pause and unpause menu from the same button using the mouse pointer when I click on it.
Lets say I have this. C#
void Update () {
if (Button_Pause.OnPointerClick()) {
if(!active){
PauseGame();
…
I'm trying to make an animation where the word contained in the middle of the screen has its letters that get highlighted one by one using an image overlay on which I increase the alpha from 0 to 0.5 over a short period.
My problem is, even though…
Working on a Unity App, and trying to make a basic Menu Screen.
I run Unity 5.0.1p3.
Although irrelevant, this might be important: My app uses Vuforia, and thge other scenes have no problem.
So, when I try to create a Menu Screen using the default…
I'm not familiar with Unity's new UI system of 4.6 and later. I would like to display a series of buttons on screen and have them center-aligned and breaks into the next line when screen width is reached. The old OnGUI function no longer seem…
I'm developing iOS & Android game using Unity 4.6.4. My UI stuff works well on Android devices. However, on iOS devices UI appearance is OK but they're not working properly. Button onClick events are not working, button animations work though - that…
Novice here - of course. I'm using Unity 5, and am looking to display on screen the coordinates of a player using a FPS camera. The main reason is I'm using a camera path animator to fly around a terrain scene I built for class, and think by logging…
I have the requirement to Hide and Show the specific gameobjects on specific button click.
Button-1:-
gameobject[0].SetActive(false);
gameobject[1].SetActive(false);
gameobject[2].SetActive(false);
gameobject[3].SetActive(true);
…
I'm have problems using runtime-generated buttons in Unity 5.
Buttons are created correctly, but i have some problem with the listeners.
I use this code to create buttons:
foreach (string str in _scene.PDF_ITEMS)
{
button =…
When the scene like below, the ScrollRect has no problem.
Canvas (Pixel Perfect toggle off)
--| ScrollRect ( ScrollRect + HorizontalLayoutGroup )
----| Content
----| Scrollbar
But when Pixel Perfect toggle of Canvas is on, the ScrollRect is not…