Prefabs & Prefab Variants - Unity Tutorial

  Рет қаралды 19,354

Tarodev

Tarodev

Күн бұрын

Learn what prefabs are, how to use them, and how to take advantage of prefab variants to maximize re-usability in your games.
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev
About Tarodev:
Develop video games like a pro!
Whether you're a beginner or a seasoned game developer, you'll find lots of useful tips and tricks to boost your development career. Visit the channel: / @tarodev

Пікірлер: 26
@marilynjay
@marilynjay 3 жыл бұрын
Super helpful! I understood prefabs but I didn't understand the variants until this video.
@Tarodev
@Tarodev 3 жыл бұрын
They're super handy. Always make a 'base' variant for game units as they'll usually share certain components like healthbars, colliders, etc.
@margobelorukova
@margobelorukova 2 жыл бұрын
That's a great explanation. Thank you for keeping it concise and short.
@iglonudel1680
@iglonudel1680 Жыл бұрын
This is really cool, thanks for the easy to understand explanation too :D
@richienko2
@richienko2 2 жыл бұрын
very good tutorial, subscribed right away :)
@Tarodev
@Tarodev 2 жыл бұрын
Welcome aboard
@JW-uu9je
@JW-uu9je 2 жыл бұрын
I really appreciate your videos! Thank you.
@masonmason22
@masonmason22 3 жыл бұрын
Nice video. Thanks!
@Lashistoriasdelilith
@Lashistoriasdelilith 2 жыл бұрын
hi, I've tried making 3 different kids of balls. All of them are different sizes and that works just fine, but when I change the color, it applies to all the variants, included the original one. Can you help me please?
@m_maksym
@m_maksym 3 жыл бұрын
maaaaan you're good) and interesting themes and all's clearly explained. I'm glad i found your channel! Mb let's create some game?
@noobcraft5712
@noobcraft5712 3 жыл бұрын
good vidio will help when making longer games whe I am at intermidiat level in game dev. :)
@omega_dip_wod
@omega_dip_wod 3 жыл бұрын
such a good lesson!
@Floatharr
@Floatharr Жыл бұрын
Thanks for the tutorials! Went through basically every video on the channel today, best C#/Unity content on youtube. Regarding this video: crazy thought, but isn't this roughly analogous to inheritance? Would it make sense to have a base prefab, then variants for dynamics or interactables, and assets would be a variants of those. Then you could do stuff like toggle shadows for every object at once, or change interaction distance for every button/door/switch in the game. Probably exactly why variants were even made. Maybe there could even be scripts for stuff like mesh colliders made automatically from the mesh filter. Something to tinker with later.
@abhay2166
@abhay2166 2 жыл бұрын
thank you
@vishnu2737
@vishnu2737 3 жыл бұрын
Which shader you are using for slime?
@youssefbencheikh8637
@youssefbencheikh8637 Жыл бұрын
Something i couldn't wrap my head around in varaints is the part of the manual that says "Note: When editing a Prefab Variant in Prefab Mode, you should understand that applying these overrides (via the Overrides drop-down window or context menus) will cause your variant’s variations to be applied to the base Prefab Asset. This is often not what you want. The point of a Prefab Variant is to provide a convenient way to store a meaningful and reusable collection of overrides, which is why they should normally remain as overrides and not get applied to the base Prefab Asset." Could you please clear this up? Thanks in advance
@ryo_chr
@ryo_chr 2 жыл бұрын
when i create the prefabs folder and drag in a model, it doesn’t become a prefab. it stays a model
@akashtechdeveloper
@akashtechdeveloper 3 жыл бұрын
Hi sir ji I need help how to access child of prefab through script in unity?
@Tarodev
@Tarodev 3 жыл бұрын
Depends what you need to grab. You there is a script or component on a child you need you can do: transform.GetComponentOnChildren(); If you need simply one of the child transforms you can do transform.getChild(i)
@akashtechdeveloper
@akashtechdeveloper 3 жыл бұрын
@@Tarodev okk
@CCV334
@CCV334 2 жыл бұрын
How do you make the slime shader? I really like how that looks.
@Neren728
@Neren728 Жыл бұрын
Thanks from Russia!
@Tarodev
@Tarodev Жыл бұрын
это сообщение с автоматическим переводом
@RimuruDev
@RimuruDev Жыл бұрын
Cool!
@raxacoricofallapatorius8484
@raxacoricofallapatorius8484 9 ай бұрын
great, but why not explain the benefits in performance of doing this, rather than creating each one as its own standalone prefab?
@batuhanbatuhan4131
@batuhanbatuhan4131 2 жыл бұрын
so this is basically what classes are in unity. you make an instance var turn into a class by turning it into a pfab and you can create subclasses from it.
Rotate an object in Unity [2021 Tutorial for beginners]
2:31
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 137 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 685 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 45 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 10 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Organize your Project - Unity Tips & Tricks
6:50
Tarodev
Рет қаралды 23 М.
How to use Prefab Variants - Quick Unity Tutorials
2:30
toficofi
Рет қаралды 57 М.
Lerping in Unity - You HAVE to know this!!
10:54
Tarodev
Рет қаралды 89 М.
How to use Layout Groups in Unity
11:02
Tarodev
Рет қаралды 42 М.
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 156 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 301 М.
Be CAREFUL with Scriptable Objects!
8:27
Code Monkey
Рет қаралды 85 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 685 М.