SCRIPTABLE OBJECTS in Unity

preview_player
Показать описание
When making a game you need a good way of storing data. This is where Scriptable Objects come in! In this video we’ll learn how to use them by looking at an example: Making cards for Hearthstone.

····················································································

········································­­·······································­·­····

Edited by Sofibab & LeBonques.

········································­­·······································­·­····

► All content by Brackeys is 100% free. We believe that education should be available for everyone.

········································­­·······································­·­····

♪ Baby Plays Electro Games

Licensed under Creative Commons: By Attribution 3.0 License
Рекомендации по теме
Комментарии
Автор

- "I hope you guys had an happy new year"
Me: Oh, this video is recent
- "and I'm looking forward to an happy 2018"
Me: ...

nerusskyhigh
Автор

For anyone wondering, you can also reference text mesh pro objetcs (with "using TMPro;") then declaring the text as TMP_Text instead of Text;

galileemason
Автор

A fantastic tutorial ! Short, down to the point, funny... each video always feels fresh and interesting ! Cheers :) !

Blackthornprod
Автор

Asbjørn, your tutorials are still the top grade, even now, several years after you've stopped. 😊

goehlergamedev
Автор

Everyone told me that the scriptable objects are pretty hard to learn. But as always you made it much easier to understand and implement. You are life saver, man. Thanks

Copybook
Автор

Whenever I need help with anything unity-related, it turns out Brackeys already did that specific thing. Thanks Brackeys!

btarg
Автор

I love how quick you teach a subject. I see other tutorials on subjects like this that people spend an hour teaching. I am usually not looking to spend an hour learning a new piece of Unity, unless it really deserves it. But what you get across in under 9 minutes is perfect! Keep the videos coming.

gregburks
Автор

This is by far the best scriptable object video I've ever seen. I wasn't convinced I needed to use scriptable objects in my project but this completely changed my mind. This is a masterclass in visual explanation as well at technical. I love this.

TheSilentHearts
Автор

aha whoa. What great timing, I just started working on a card game prototype & never knew how to use Scriptable Objects, now I am debating if I should use this or JSON... or both!? 😦 THANKS BRACKEYS!

Jabrils
Автор

Seriously this guy is the man. Explains concepts in a straightforward manner.

volo
Автор

Ohmygod, this took me months to figure out and this video has months of my experience compiled into 9 minutes. I no joke made the exact same project, with the same class names. I wish i just watched everyone of your videos before I ever touched a keyboard 😭

willlacey
Автор

I'm not sure what version of C# you're using but string interpolation is really useful for showing #s as text. You can do stuff like: Text.text = $"{numberVariable}"; You can even add stuff like :F2 after the number value or variable name to specify decimal places. It makes forming strings that have placeholder variables in them really nice looking. For example: Debug.Log($"{itemName} costs ${itemCost:F2}." as opposed to a bunch of concatenation or the old style where you include variables as parameters to some function.

sparrowhawk
Автор

It's amazing how much value can one pack in 9 minutes. Thank you!

maxhuk
Автор

0:18 The subtitle "Heavenly Choir" made me giggle a bit :D

WuxiaNovelsAudiobookHD
Автор

this guys S tier material, literal genius and he gives it away for free

ivanturtle
Автор

I was just now searching how to define the properties of a scriptable object on a game object or if you can instantiate a scriptable object - Android notification: "Brackeys uploaded SCRIPTABLE OBJECTS". I've made use of your videos before but this time is a new level of professionalism. Good job and keep it up!

JMiguel
Автор

This is honestly one of the most helpful tutorials you've made so far! Now that I know what I can do with scriptable objects, my life will be much easier!!!

Rambolink
Автор

Please more tutorials on ScriptableObjects! Maybe you'll show us some advanced features and techniques to use them? For example it's non obvious for me how to actually code those cards so they will behave differently from each other in actual gameplay
And yes thanks for your tutorials, I watch you for a long time and I LOVE your straight and fast delivery of information. Though you usually don't go as far as we need it, just scratching the surface

dashravo
Автор

Brackey so many years after, you’re still saving my life (currently building a card/ only ui game) THANK YOU

galileemason
Автор

I was thinking on how to do enemies for a rpg, and remembered this video. Seems to be working perfectly, so thanks!

Laurender