What are Scriptable Objects in Unity and How to use them | Unity Tutorial

preview_player
Показать описание

In this video we go over a brief summary of what scriptable objects are then we dive into an example showing you how you make use of them inside your games!
Рекомендации по теме
Комментарии
Автор

Just a note, Resources.Load is fine for small projects, but there is a 2GB limit with Unity when it comes to serializable files. So your Resources file can quickly balloon to the breaking point. You can store your Scriptable Objects as Addressables and then put them neatly into groups, just like they would be in an organized folder structure. This lets you easily grab just the objects in each group, and makes bundle files that are nice and small in file size.

Konitama
Автор

I remember when i first learn about these. Sooo helpful when making allot of items in a game. speeds the process up allot.

themirlabs
Автор

Super useful video. I personally find scriptable objects really confusing so this video has really helped a lot. Once again thank you so much :)

caeleng
Автор

I use a whole custom editor system I have been working on to make mine.
I also use scriptable objects as a custom event system to trigger functions or even to pass data around that I have full access to which can make balance and debugging a little easier as well.

JackPS
Автор

Nice. Found the channel while checking up some info during load shedding. Very concise. I'm taking the game dev route a little later in life but hey, have to keep the brain working somehow :D

gwm
Автор

You could use another scriptable object to replace the Enum.

darkman
Автор

To decouple my battle from my menu and main game I use scriptableobjects and it work great. Recently I've used it for my cutscene/dialogue system to store branchs choices. So refusing or accepting a offer in a dialogue may lead to a different cutscene.

FyresGames
Автор

Hi! I hope you can help! Maybe scriptable objects would be my solution but I’d like to see what you think. In my project I’m generating a list of random characters with random variables. The player can add a random character to their character party to use that character in the game. I have a roster that holds a portrait for all characters that the player has chosen to add. The portrait is a button laid on top of an image with a text box attached. I made this a prefab that is instantiated every time a character is added and then placed onto a grid layout for the player to view.

What I want to do is to make it so the player can click on the prefab while in this roster view menu, which essentially should take the data of that character and add it to the player specified party (as there will be multiple parties in the game). But I’m not sure how to make each instantiated prefab hold a reference to a particular character. Again, these characters are randomly generated and are not predefined prior to runtime. I don’t think scriptable objects would work here would they? Do you know what solution I could go with? Thanks!

jamesstrickland
Автор

Hey i used once the scriptable objects like that but i have an issue, my game will be a really big game so i needed to make dictionaried and store the items there according to their categories, also i store data in a json and problem starts here, when i try to save the scr. Objects into a json, they are being just an instance id, and cant load anything when i build the game, so what can be the solution for this method? i actually found a different way which is less accurate but working for now and i wanted to hear your advices.

emretasdemiir
Автор

Good job! Can you increase the font size its too small. :D
BTW, what's the difference between scriptable objects and creating normal class objects?
We can achieve the same thing with class objects right?

stackflow
Автор

Could you share with me this source please!

CorbieGame
Автор

hey i was wondering if have experience making multiplayer games? i am developing a fps for about 9 months and made my own networking solution. you seem like a bright chap wondered if we could share some ideas :D

squitz
visit shbcf.ru