Shop Tutorial Unity - [2021]

  Рет қаралды 38,193

Flarvain

Flarvain

3 жыл бұрын

Hi All,
This is part 1 of the shop tutorial video. In this video we cover the functionality of creating a shop in unity3d that can be applied to any type of shop you wish to create in the future.
Thank you for checking out my tutorials please consider subscribing and thanks leaving me a comment of what you'd like to see next.
Discord: / discord
Patreon: / flarvain
Subscribe: (it's free!)
I also am affiliated with NordVPN, if you're both interested in a VPN and want to help support or already have a subscription and need to renew it then please consider using my link:
NordVPN: go.nordvpn.net/aff_c?offer_id...
NordPass (password manager): go.nordpass.io/aff_c?offer_id...
The above helps a lot!
#troubleshooting, #Unity, #CSharp, #Programming, #GameDev, #tutorial,

Пікірлер: 84
@erdemalpkaya
@erdemalpkaya 6 ай бұрын
Wow. Your videos deserve much more. Thanks
@Flarvain
@Flarvain 6 ай бұрын
Thanks so much, i appreciate the feedback :D
@moosesnWoop
@moosesnWoop 5 ай бұрын
My man's teaching the concept of prefabs! Prefabs (pre-fabricated game objects) are great for those repeative functional UI components (or any component) would like to update across ALL of the same prefabricated objects. Think of it as making your own 'defaults' for say button types or text types of a certain font.
@Flarvain
@Flarvain 5 ай бұрын
Hell yeah! Make it scaleable, and you'll never regret it! Enjoy your game making journey! :)
@JessicaGalvan93
@JessicaGalvan93 2 жыл бұрын
Thank you! I was on the right path with the itemTemplate and prefab but I had trouble making it so that it would fit in a scrollable window. Right now it's almost working!!!
@Flarvain
@Flarvain 2 жыл бұрын
No worries jessica, you're welcome!
@damianoschirinzi4317
@damianoschirinzi4317 3 жыл бұрын
Thankyou! Will be watching this when its time to implement my shop system!!
@Flarvain
@Flarvain 3 жыл бұрын
You're welcome! If you have any questions during it let me know :)
@thellamasorcerer4785
@thellamasorcerer4785 Жыл бұрын
This tutorial saved my marriage
@Flarvain
@Flarvain Жыл бұрын
Here i thought you couldve saved your own marriage with llama magic!
@GathaKv
@GathaKv 3 жыл бұрын
Ahhh Helpful as Always! keep the great work Buddy
@Flarvain
@Flarvain 3 жыл бұрын
Always welcome gatha :)
@user-qr9zj7on7x
@user-qr9zj7on7x 5 ай бұрын
05:42- "some of these things seems a little bit an*l to begin with".(Checked with auto captions) Awesome and crisp content tho .
@Flarvain
@Flarvain 5 ай бұрын
Haha, ill announce dates for my apology tour soon 😂 Glad you enjoy the tutorial, best of luck with your games!
@MiniatureGiantsGameDev
@MiniatureGiantsGameDev Жыл бұрын
Excellent tutorial, thanks for this. Will be using in an upcoming game :) Subscribed.
@Flarvain
@Flarvain Жыл бұрын
Thanks and welcome to the channel. When you get further with your game feel free to come join the discord and post it in the self promotion area for others to play :)
@gsogaming666
@gsogaming666 7 ай бұрын
Hey thanks a lot for the video, Very helpful Add Component > Mask > Set the image of the Scroll Rect to a non-cornered image. Hope it helps.
@Flarvain
@Flarvain 7 ай бұрын
You're welcome, glad you enjoyed it!
@namlasyruhdwohc6340
@namlasyruhdwohc6340 6 ай бұрын
thx!
@lucasdahl1118
@lucasdahl1118 2 жыл бұрын
Very easy to follow and understand, thank you!
@Flarvain
@Flarvain 2 жыл бұрын
Thanks! Glad it could help :)
@lucasdahl1118
@lucasdahl1118 2 жыл бұрын
@@Flarvain this is exactly what I wanted a shop to look like, but haven’t put any in my games because I couldn’t get it to to work just right, so thank you!
@Flarvain
@Flarvain 2 жыл бұрын
@@lucasdahl1118 thanks again, you should consider coming to join the discord aswell!
@lucasdahl1118
@lucasdahl1118 2 жыл бұрын
@@Flarvain will do!
@RaffaelAlexander
@RaffaelAlexander 2 жыл бұрын
Thank you! Nice tutorial!
@Flarvain
@Flarvain 2 жыл бұрын
Hey raffael, always nice to receive feedback. thanks for taking the time to comment, appreciate it :)
@hahas507
@hahas507 Жыл бұрын
Very nice tutorial. Easy to understand.
@Flarvain
@Flarvain Жыл бұрын
Thanks :)
@amineidrissi6237
@amineidrissi6237 Жыл бұрын
Awesome tutorial thank you
@Flarvain
@Flarvain Жыл бұрын
Thanks amine idrissi!
@TheGamesEnd77
@TheGamesEnd77 Жыл бұрын
thanks you !!!!!!! its a good video you save me THANKS!!!!!
@Flarvain
@Flarvain Жыл бұрын
You're welcome :) glad you liked it!
@NateTheGreat408
@NateTheGreat408 2 жыл бұрын
Nice tutorial thank you!
@Flarvain
@Flarvain 2 жыл бұрын
You're welcome!
@francisco6236
@francisco6236 Жыл бұрын
Yo, thanks for this awesome tutorial, for anyone newbie to this remind to NOT delete "EventSystem", couldn't figure out why my scroll wasn't working and it was because of that, I'm still a noob x)
@Flarvain
@Flarvain Жыл бұрын
You're welcome. I made the same mistake when i first started with the event system, "whats this, i didnt make it. *delete" haha. Glad the tutorial is novice friendly, that was the aim!
@koojoker
@koojoker 7 ай бұрын
Rly good tutorial, looks very good and I enjoyed the easy to follow tutorial. Subed!
@Flarvain
@Flarvain 7 ай бұрын
Thanks! Welcome to the channel 😀
@koojoker
@koojoker 7 ай бұрын
@@Flarvain WOW this is crazy your an very active ytber. Keep it up!
@Flarvain
@Flarvain 7 ай бұрын
@koojoker haha, just checking on the way home from working more coincidental than anything else! But really, thanks for the comment! :)
@koojoker
@koojoker 7 ай бұрын
​ lol =)
@koojoker
@koojoker 7 ай бұрын
@Flarvain sry for bothering, but I have a bug with the code. On public void PurchaseItem(int btnNo) { if (coins >= shopItemsSO[btnNo].baseCost) { coins = coins - shopItemsSO[btnNo].baseCost; coinUI.text = "Coins: " + coins.ToString(); CheckPurchaseable(); } } e.g. I have 100 coins, i need 101 to buy a 100 coins item because {>=} is like bigger than [] right? I tried if(coins + 1 >= shopItemsSO[btnNo.].baseCost) but I was having this error 'IndexOutOfRangeException: Index was outside the bounds of the array.' please help
@anlozge1788
@anlozge1788 Жыл бұрын
Great tutorial!
@Flarvain
@Flarvain Жыл бұрын
Thanks Anil! Welcome to the channel :)
@fall3nworldstudios
@fall3nworldstudios 2 жыл бұрын
WOW SUPER HELPFUL THANKS
@Flarvain
@Flarvain 2 жыл бұрын
Happy it was helpful :)
@floriskruger8098
@floriskruger8098 3 жыл бұрын
THANK YOU SOOOOO MUCH
@Flarvain
@Flarvain 3 жыл бұрын
You're welcome :)
@forrestarnold1402
@forrestarnold1402 Жыл бұрын
Absolutely amazing!!! Quick question: I have my shop open in a window so that you can still see the background, any idea how I could make it so that the icons that normally cant be seen off screen invisible until it reaches the window?
@Flarvain
@Flarvain Жыл бұрын
Im not sure i understand the question sorry. If you're talking about buttons behind the window not being visible when the window is up then you can just use some simple layering of game objects that should do the trick to hide things behind it. If ive misunderstood what you mean, please clarify :)
@stormforce1010
@stormforce1010 Жыл бұрын
Add a Mask script to your Scroll rect :D
@abowloffruitproductions5733
@abowloffruitproductions5733 Ай бұрын
I know that this video is kinda old by now, but I have a sorta unique problem. I want to make this type of menu for a shop able to be navigated with a controller. Does anyone know how I can do this? I can navigate other menus in my game with controller using the input system, and this menu is able to be navigated as well. I just need the scroll rect to scroll with whatever button I have selected. Like how shop menus in most games work. I have implemented this tutorial exactly the same, but made it vertical rather than horizontal.
@RAM-nb1ot
@RAM-nb1ot 3 жыл бұрын
u seriously need more views bro.....
@Flarvain
@Flarvain 3 жыл бұрын
Thank you! This is only the beginning! Big plans for content so hopefully that'll being the views :)
@RAM-nb1ot
@RAM-nb1ot 3 жыл бұрын
@Lorenzo Mason wth?
@k1aldgames275
@k1aldgames275 2 жыл бұрын
Thanks !!!
@Flarvain
@Flarvain 2 жыл бұрын
You're welcome :)
@veebz7836
@veebz7836 Жыл бұрын
My Shop Items keep popping up with the scroll rect scrolled all the way to the left on start, how would i ensure the scroll rect spawns so that the first item is displayed on the left
@stormforce1010
@stormforce1010 Жыл бұрын
Hey, Very good tutorial. I am attempting to make a vertical scroll menu instead of a Horizontal scroll. However the Items continue outside of the Scroll Rect, how would I stop them from getting out?
@stormforce1010
@stormforce1010 Жыл бұрын
I figured it out, adding a Mask script to the Scroll rect keeps it inside.
@Flarvain
@Flarvain Жыл бұрын
Yeah the unity UI can get a little bit fiddly when you add things in the wrong order so keep that in mind if you get to that point where you're thinking "im sure this is what i did last time!" Haha. Glad the tutorial was helpful, welcome to the channel!
@dayton2788
@dayton2788 3 жыл бұрын
Omg, thanks from Russia
@Flarvain
@Flarvain 3 жыл бұрын
You're welcome! From Australia
@luckydenzel
@luckydenzel Жыл бұрын
Can you make a update video so the game remembers that the player has bought it so when he closes the game and opens it again he doesn't have to buy it again?
@stephenseaback1204
@stephenseaback1204 2 жыл бұрын
Any help trying to convert this method of shop implementation in a 3 wide vertical shop for a mobile phone application? One of my favorite tutorials.
@Flarvain
@Flarvain 2 жыл бұрын
Thanks for the comment stephen, maybe shoot me an email of what you're trying to achieve and i can give you some pointers if you're still stuck. Welcome to the channel!
@stephenseaback1204
@stephenseaback1204 2 жыл бұрын
@@Flarvain I got it with a grid layout group. I am going to shoot you an email about another problem.
@farwani3535
@farwani3535 2 жыл бұрын
Im trying to make a 3d game where u pick up coins and use them in the shop I have been trying to look for a video to help me with this but I didn't find anything, any help?
@Flarvain
@Flarvain 2 жыл бұрын
Hey farwani, it shouldnt be too hard. This tutorial will gives you a template that you can insert into basically any game. In terms of your coin pickup, a simple example would be adding to an integer called coins when you walk over a coin and having a collision event that adds one to that integer and then destroys the gameobject. Hope that helps, please consider subscribing and join the discord if you get stuck :)
@cate01a
@cate01a Жыл бұрын
no scripting :( having issues with adding script functionality to pressing a button: "When I press this button, I want you to run the Clicked() fucntion in MyScript"
@Flarvain
@Flarvain Жыл бұрын
Hey there. In the inspector you can click the plus sign on the 'onclick' area. You can write a function in any script and drag that in and it will trigger when you click that button :)
@cate01a
@cate01a Жыл бұрын
@@Flarvain Cheers but not quite! Got it working now, and the thing is you can't directly use scripts and attach them to the OnClick() button thing. Instead, you need to attach a gameobject (which would have your script). So underneath your Button or whatever you can create a child "ScriptHolder" whose only component is your script (and the necessary transform). Then you add this ScriptHolder object and it'll work
@Flarvain
@Flarvain Жыл бұрын
@@cate01a ahh sorry yes, anything dragged in there will always need to be attached to a game object if it derives from MonoBehaviour. Good spotting!
@luckybeeyt
@luckybeeyt 4 ай бұрын
Doesn't work for me 😥
@luckybeeyt
@luckybeeyt 4 ай бұрын
Ok i fixed it, i forgot to add event system because it should have been added automatically!
@never_diehuman
@never_diehuman 6 ай бұрын
It does not scroll i dont know what i am doing wrong so sorry 😢 but its looks good and if somone will help me but when not i really liked the tutorial 🎉
@never_diehuman
@never_diehuman 6 ай бұрын
Sorry for this mesage i was not seting the scroll rect to be scroolable so sorry
@Flarvain
@Flarvain 6 ай бұрын
No problem! I hope you get alot of use out of it! :)
@luckybeeyt
@luckybeeyt 4 ай бұрын
@@Flarvain Mine doesnt work, but I think I did everything right, also rewatched to check
@luckybeeyt
@luckybeeyt 4 ай бұрын
How did you fix it @@never_diehuman ???
@SkorpionYassine
@SkorpionYassine Жыл бұрын
REname the video to Unity Shop UI tutorial :/
Shop Tutorial Unity #2 [2021] - Scriptable Objects
15:35
Flarvain
Рет қаралды 18 М.
How to make a simple Shop in Unity
14:16
Zyger
Рет қаралды 59 М.
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 24 МЛН
Эффект Карбонаро и бесконечное пиво
01:00
История одного вокалиста
Рет қаралды 6 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 16 МЛН
How Do Games Render So Much Grass?
15:52
Acerola
Рет қаралды 316 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 1,9 МЛН
Using Composition to Make More Scalable Games in Godot
10:13
Firebelley Games
Рет қаралды 194 М.
Unity SHOP SYSTEM Tutorial
8:31
Pandemonium
Рет қаралды 29 М.
How to make a HEALTH BAR in Unity!
21:06
Brackeys
Рет қаралды 1,1 МЛН
Making UI That Looks Good In Unity
18:06
Game Dev Guide
Рет қаралды 655 М.
How To Make UIs without frustration | Unity Beginner Tutorial
16:58
This is GameDev
Рет қаралды 27 М.
BLAST Premier Spring Final 2024 Presented by Revolut: Group Stage, Day 2
11:10:11