ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Serialize Reference, Serialize Field, Serializable and Scene Serialization in Unity | Unity Tutorial
ฝัง
- เผยแพร่เมื่อ 12 ม.ค. 2024
- Learn about the newish SerializeReference attribute in Unity, as well as the ins-and-outs of the SerializeField and Serializable attributes and how they relate to scene serialization in Unity. We'll be exploring the Unity YAML scene files as well to get a big picture view of how custom classes get serialized. Finally, we'll take a look at the package SerializeReferenceExtensions to see how we can improve our editor workflow when working with polymorphism and subclasses.
Background Song: / tutorial-background-mu...
Samurai Unicorn Discord: / discord
Unity-SerializeReferenceExtensions: github.com/mac...
Crystal clear. Thank you sir.
omg i love you dude the SerializedReference just opened my eyes and saved me hollyyyy
Glad to hear it! SerializeReference is such a great tool to have in the toolbox.
underrated video, how has this just 405 likes after 6 months?
Thank you! The topic is fairly specific so this isn't really a video someone watches for fun nor something beginners would care about. I think a video like this will just linearly grow over time though since it's always going to be relevant. Also, this was my second video and I had about 15 subs when I uploaded it, haha.
Yes, please make that finite state machine in inspector video!
Great video! Even being at a level where I'd typically say "yeah of course I know how [SerializeField] works..", this step-by-step testing along with checking the scene file really helps shed some light on what's actually happening, and cements it all together. The later tips in the video about [SerializeReference] will come in handy for some projects I have in mind. Thanks!
Great to hear!
I love your explanation. Sometimes we forget how things works.
this just saved my game I think. in the past I used structs to save data with enums for types. thanks to this I can create normal classes and now they are serializable which allows me to turn them in to json's easier and save them. Plus I can easily test and setup things in the editor. this extension must be a default important thing in unity
Again, amazing explanation. Would love to see you explain FSMs. It would be really helpful
Thank you! I've added FSMs to the list. It might be a bit of a wait before I get to the video since it will require more pre-production than my other videos. It will be a great topic though!
Excellent explanation. Thank you.🎉
Great explanation. Subscribed. Keep it up! It would be awesome to see the finite state machine!
wow. finally a great overview with depth and a calm explanation. Thank you!
We need you!!!!! As a beginner, you are the only one who can help a person like me to escape the tutorial HELLLL!!!!
Great video, btw.
With that kind of attitude you'll be out of Tutorial Hell in no time!
Thanks. This really helped me understand serialized fields a lot better. Hope to see a lot more videos from you!
Great video, I have subscribed.
Such a great explanation! I keep coming back to this as I learn Unity and run into these concepts
Thank you
I would LOVE to know more about your state machine, even more if the quality of the video matches this one !!
First video youtube recommended that's actually really good
Nice tutorial and thanks for the tool, not sure what I'd use it for yet, but I think its great to setup stuff on the inspector that way
I'm surprised that a completely random video was able to solve an issue I was having like a week ago haha.
I sacrificed some generics and abstracts due to the very situation you've showed. But perhaps I can reimplement them using some of these attributes.
Awesome video, really clean explanation.
Clear and compact explanation! Looking forward for more future video from you!
Finally I know the serialized Reference use case.
Great video!
Please continue to making these beyond the basics videos. Great concept really.
Worked with Unity for years, but still don't understand the Serialize Reference feature. Thank you for another beyond the basic tutorial.
... the video I wish had existed when I first started learning Unity.
Love it! Subbed!
QuoteAllPositiveComments();
Thank you !
Finite state machine from this topic is what I would like to see.
Please make a finite state machine, I want to learn the advance topic more
keep up the good work! much appreciate
thank you :)
This is really cool, dude! I'm very curious to know how you do saving and loading with Samurai Unicorn, because while there are plenty of tutorials that show how to save basic items, none show how to save for a feature game. Items that get spawned in the scene, scenes full of references, saving enemies various states/animations/pathing etc. I don't know if that's a video you'd be down to making!
Livesaver, thank you!
This music make it from good tutorial to good sad tutorial 😢😆
I was going more for calming and peaceful, lol. Too many gamedev tutorials make Unity seem confusing or hard, so I try to go for a Bob Ross vibe instead.
@@GameDevelopmentBeyondTheBasics i didn't mean it's Bad turorial, you did good job and made it simple, its just the music made my eyes wet 😆
Unity just asked me what I don’t like the most and I said “not enough beyond beginner learning resources”. TH-cam must have heard me lol
That was my biggest pet peeve as well, haha.
Why you didn't use the SerializableField for the variable ItemName? It's not being saved?
The [Serializeble] in the class automatically serialize all the variables in the class?
Because it's a public property so it will get serialized, so long as the class it's on is serialized. You can read more specifics of how serialization works in Unity here: docs.unity3d.com/Manual/script-Serialization.html
I was having a lot of trouble trying to serialize ValueTuple. Any suggestions?
I haven't tried serializing that before, but you can always extend ISerializationCallbackReceiver and try getting it serialized there. The docs have an example about how to do this with a dictionary: docs.unity3d.com/ScriptReference/ISerializationCallbackReceiver.html
That said, based on this thread, it looks like people have been requesting the feature for almost 6 years now: forum.unity.com/threads/please-let-a-valuetuple-can-be-serialized.552703/
I wanted to sub when I saw the channel's name. Do you plan to upload?
I would love to have you subscribe! I'm currently wrapping up a video on playing a one off AnimationClip from code (not needing it set up as a state in an AnimatorController). The video is meant as an introduction to the Playables API (the thing Animators and Timeline is built on). I hope to have that video out today or at the very least sometime this weekend.
@@GameDevelopmentBeyondTheBasics I subbed. it is hard to find advanced unity tutorials
New video is out now: th-cam.com/video/qPQkFYt7smk/w-d-xo.html
No offense but your hair is quite distracting
Maybe wear a hoodie or something idk
I am sorry you can't handle my luscious curls :) I'm hoping with better lighting my hair doesn't flicker with the green screen as much.
I for one think his hair looks magnificent
Maybe it's just a case with the lighting :)