How to change UI image Array with button in Unity

preview_player
Показать описание
In this video, I will show you a simple way to Switch UI Image Array with button in unity

In this video, we create an easy Script that will Switch your UI image every time by clicking on Next or Previous button. Step by step, you are going to learn How to change image from array with button in your unity game. Also, you will learn the feature of how to create array in unity.

🤝 Connect with Us:

🔔 Subscribe for More Tutorials: If you like what I'm doing, don't forget to like, share, and subscribe! let me know what do you think about this video in comments.

Other videos that will teach you unity

➡️ How to make a tank Game Move and Rotate in unity:

Рекомендации по теме
Комментарии
Автор

FYI If you add a "public int pages" and replace "4s" in the if(index >= 4) index = 4; with pages you can then set the page count in the inspector making this more useful.

GiantBean
Автор

finally found what I was looking for... thank you ♥

CloudyKeebs
Автор

How to perform the same procedure but using 4 arrows? Right, Left, Up, Down and change the corresponding images?

LeandroMenzen
Автор

OMG THAT'S WHAT I WAS LOOKINKG FOR!!!! THANK YOU!!!!

artemcall
Автор

Thank you so much you are a life saver

anthoniofernandie
Автор

this is so goood
now if i want to go to different scenes or like different timelines with each colour how do i do so?

racingrevved
Автор

GOD THANKS THIS IS WHAT l NEED IT CAUSE EVERYTHING WAS BETWEEN SCENE AND NOT IMAGES THANKS SO BAD

MondayStairway
Автор

Just what I needed, worked like a charm, my thanks

judzam
Автор

Thank you very much! It's a good video. You helped me. ♥

akelaina
Автор

YOU SAVEE ME!! THANKS A LOT MAAN, KEEP DOING GREAT JOBB!

ΣτρατοςΚ-υρ
Автор

I have 16 images I want to use as an interface background. When I run the simulator for my android phone on Unity, clicking next does nothing. Any tips?

teigencarter
Автор

hii how can i make the image loop back, as in go to the first one again after clicking next for the last image

gabrielajes
Автор

sory for my bad english, i've got a message index was outside the bounds of the array. so when i press next in to last image, i cant go back to previous image. so button it stuck. how i can resolve it? as well as previous button, i cant press next button. thx

gilanganandaakbar
Автор

when I click on buttons show me an error index out of range . can you help me?

hojjatnaghash
Автор

hi how can i make the images loop? I'm a super begginer so if its okay to dumb it down a bit pls do ToT

natashacalaquian
Автор

Thankyou so much!! This is soo cool and works!!! But can this method do without button, without trigger or without applying image? I mean just play the image from folder automatic like slideshow?

aimihazirah
Автор

index was outside the bounds of the array. how to solve

yatyanochka
Автор

With the tutorial i can make extra menu thanks

donuteam
Автор

Hi! thanks! i need to save the index with playerPrefs, how can do it? thank!!
you are great

cristianfernandez
Автор

Hey I loved the video! Since I am new to coding there is an issue I am having. Maybe somebody could help.. It says that " Index was outside the bounds of the array" No idea how to fix that.. Any ideas?

persephonelesg
welcome to shbcf.ru