No video

Unity Arrays? Don't Do this!

  Рет қаралды 31,667

Jason Storey

Jason Storey

Күн бұрын

Пікірлер: 163
@InfallibleCode
@InfallibleCode 3 жыл бұрын
Great video, Jason! Love the content, love the memes, love that you're finally putting stuff out there. Can't wait to see the next one
@page0809
@page0809 3 жыл бұрын
The next topic is "Custom Editor Scripts" then "Validations" or vice versa, oh yeah the data interruption was cool!
@thedude110
@thedude110 3 жыл бұрын
Really glad to see you started your own channel, Jason! Loved your contributions to Jason Weimann's videos, always got interesting stuff to add to the conversations.
@tailwindmechanics7454
@tailwindmechanics7454 3 жыл бұрын
Good stuff! I like the editing, keeps it light and easier to digest. Yeah I'd be up for editor code. What I'd be most interested in is how you'd setup a codebase for production, something mid sized like an indie pc game. Specifically I want to understand how you use interfaces and why, and how to avoid things like zenject and singletons. Also curious about your take on UniRx and DOTS. Thanks for this man!
@grazeen
@grazeen 3 жыл бұрын
I would love to see more tutorials from you. About anything really... You seem very experienced with industry and know a lot about shortcuts/easier ways to do stuff.
@divainsyoutube4254
@divainsyoutube4254 3 жыл бұрын
Thank you for another useful video! Love the editing!
@nickygdev
@nickygdev 3 жыл бұрын
He's killing it with the editing
@WorldOfZeroDevelopment
@WorldOfZeroDevelopment 3 жыл бұрын
I really like this approach of making data easier to access. You can even put these files behind a web server and dynamically update them without having to have the players download a new game client. Changing that damage stat on a sword no longer requires validating an entire new release! One suggestion: Unity includes the Newtonsoft JSON library already for you which can handle serializing and deserializing complex types for you. Instead of splitting text files manually which can break when you add another field, using some structured data like JSON, XML or YAML can make this more robust and less likely to trigger weird and confusing warnings when a data file is incorrectly changed or your type gets updated. I believe that code to do this will be shorter than the manual parsing version as well! For example: var lines = JsonConvert.DeserializeObject(_file.text); Should be all you need when converting your Items data 😀
@JasonStorey
@JasonStorey 3 жыл бұрын
I completely agree! In fact I use Newtonsoft JSON for most of my projects, but in unitys documentation they do actively caution you against relying on the version they include as they only promise it is there for editor tooling and not always guaranteed, also while I would use json/bson for data myself as I am comfortable editing it, when it comes to giving something to non-tech people, asking them to just type some words in a file with commas between them is easier to explain and reason about, so for user facing stuff I often use plaintext/flat files. (though secretly I will often parse what they give me, model it as a json DTO and use that myself. )
@behnamrasooli8801
@behnamrasooli8801 3 жыл бұрын
wow! such an improvement in your presentation in just 3 videos. This shows you're really good at this buddy. Thank you a lot :)
@ryanlaseter7626
@ryanlaseter7626 2 жыл бұрын
I like these kinds of videos. It's easy to initially do the array by hand in Unity but you're right, it requires opening Unity, it's not portable, etc. It's nice when someone says 'there is just a different/better way that is easier long-term and way less overhead' appreciate the video.
@MaximumSpice
@MaximumSpice 2 жыл бұрын
This is amazing. The hard thing about this is as a person who learnt unity and C# on my own, how would I even know these functions and options exist until I come across this. Amazing work tho!
@BigRookDigital
@BigRookDigital 3 жыл бұрын
This 1.0x Jason is an Impostor. Put on 1.5x for Authentic Jason. Great job on the editing.
@jeniferirwin
@jeniferirwin 2 жыл бұрын
Man went absolutely bonkers with the editing, but in an awesome way. This has a good balance of having fun, novel things going on while not being so much as to be distracting. It must have taken a lot of time to do all of those tricks; much respect!
@gonzaloescamilla8488
@gonzaloescamilla8488 3 жыл бұрын
God, your content is so damn good. keep up the hard work dude!
@nickygdev
@nickygdev 3 жыл бұрын
I'm reading Game Programing Gems and on the first chapter they talk about how you should use text files to not scare away designers. Great to see it implemented in Unity
@bluzenkk
@bluzenkk 2 жыл бұрын
Really glad to see you started your own channel, Jason! I really hope you can make more of these in the future.
@happytofu5
@happytofu5 2 ай бұрын
I've never seen a tutorial video edited this entertaining xD
@olon1993
@olon1993 2 жыл бұрын
I cannot express how valuable this video is! Cannot wait to learn more about custom editor scripts!!!!1!!
@thomasbrush
@thomasbrush 2 жыл бұрын
Why'd you stop creating videos. These are so good
@orwell235
@orwell235 2 жыл бұрын
Totally agree with Mr Thomas. It was very entertaining yet informative.
@JediMediator
@JediMediator 2 жыл бұрын
Super excited to see you make your own channel! Every bit of content I've seen from you on Jason and Charles' channels have been so useful already!
@issimc158
@issimc158 2 жыл бұрын
your videos are awesome. you're awesome. look forward to each and every new vid that you got cooking up.
@AnnisVeryGoodGames
@AnnisVeryGoodGames 3 жыл бұрын
Neat, this is surely going to be useful at some point! Next level: How do I automate file population? ;) Btw, I notice your videos' audio is not quite synced up -- if you use Davinci Resolve, it can auto-sync your high res audio track based on the video's original audio track (I'm sure Premiere must have something similar).
@JasonStorey
@JasonStorey 2 жыл бұрын
Well I do personally have some apis I use that actually generate the prototype data, it can create fake users, ai user faces and random photos... maybe that could be another video when I have time :) As for the audio, that's strange. It seems in sync for me, and the audio is recording directly through the camera as a source, so that IS the original source track. Then again premiere was crashing for me this week so it could have gone a bit wrong, I'll keep an eye on it for the next one!
@AnnisVeryGoodGames
@AnnisVeryGoodGames 2 жыл бұрын
@@JasonStorey Sounds interesting! BTW, I like your topic choices so far, they're a bit more niche. Would be great to see more around advanced architecture topics as well. Re audio: That is strange! I asked my partner and he doesn't see it either but I swear the video is slightly delayed. I only even commented on it because I noticed it in multiple of your videos. But hey, if no one else sees it, no need to fix anything, I'll survive. :)
@drewvananne1796
@drewvananne1796 2 жыл бұрын
Great content! So happy to see you started posting! I'd absolutely love to see some editor extension videos.
@philip487
@philip487 2 жыл бұрын
Kudos for the extra effort on editing. Good way to stand out. gg
@athenasowl1857
@athenasowl1857 2 жыл бұрын
The editing on this video is great! xD
@millerbyte
@millerbyte 2 жыл бұрын
So happy to see you making videos on this channel, Jason! And I appreciate the editing skills ;D
@johnperes
@johnperes 2 жыл бұрын
I almost learned 1 new thing per minute in a 4 minute video Keep the good job man!
@turkeyjerkey
@turkeyjerkey 3 жыл бұрын
Love to see the Editor Scripts covered in more detail! Great job!
@TropicalMelonMan
@TropicalMelonMan 3 жыл бұрын
I learned something today, had no idea you could do cool file IO stuff like this in in Unity. Concise, well-presented and edited!
@KimetMX
@KimetMX 3 жыл бұрын
Love the new editing =) Thanks for your time =)
@FullMe7alJacke7
@FullMe7alJacke7 2 жыл бұрын
More editor videos please! Not a lot of channels ever really talk about improving your development pipeline and I feel like that is one of the many quality of life things a lot of developers don't do simply because they don't know where to start.
@mbalrog6
@mbalrog6 3 жыл бұрын
Wow! Nice upping the ante with the animated graphics. That was awesome Jason. I think the editor scripts would be awesome for a next video, or a video to hit the pipeline soon! I want more!
@microdavid7098
@microdavid7098 3 жыл бұрын
I love this approach of tutorials. The way you explain stuff is clean precise and very informative with fun in between
@supertenchoo4271
@supertenchoo4271 3 жыл бұрын
Great video Jason
@MTweedC4
@MTweedC4 Жыл бұрын
Your editing is top-notch!
@Forjugadname
@Forjugadname 3 жыл бұрын
Awesome vid, I did a basic version of this text loading before, but I didn't realise you could do this with several data points. It's just what I need for my current project.
@evanlane1690
@evanlane1690 2 жыл бұрын
Aaaahhh!!!! You started a channel! FUCKING YESSSSSSSS!!!
@JoelRehra
@JoelRehra 2 жыл бұрын
Hey, Iove the streams you do with Infallible Code, and I am hyped for what you can come up here. But please keep the videos as clean as you keep your code clean... Are those special effects really adding to the underlying message of the video? One or Two might spice it up, but in this video it has been too much ;)
@farrael004
@farrael004 3 жыл бұрын
It's really nice to see you posting videos man!
@AviarkXIII
@AviarkXIII 2 жыл бұрын
Super excited to learn more about the editor extension stuff! This was really interesting.
@anommymousse1224
@anommymousse1224 3 жыл бұрын
As always very good info in a straight forward manner, the editing too is really great, all those little touches, superb craftmanship.
@nael_nocteon
@nael_nocteon 2 жыл бұрын
Great video, thank you Jason. I'd love to see a video where you cover some insights on the Unity Editor scripts !
@willcallcool
@willcallcool 2 жыл бұрын
Great video Jason keep them coming.
@alsantour8835
@alsantour8835 3 жыл бұрын
This was great stuff, and the editing was great 👍👍 I hope this channel blows up
@asliniarayanadam
@asliniarayanadam 2 жыл бұрын
You are one of my hilarious guide in my game dev journey Jason! Keep it up! Great content!
@vanderson.f.milagre
@vanderson.f.milagre 2 жыл бұрын
Nice video. I'd like to see you explain how to work with Editor scripts in Unity since I don't really have much of an idea of how to start.
@rickloyd8208
@rickloyd8208 4 ай бұрын
Man, why did you stopped your awesome videos... I was ware of txt files but I never thought to use them in the way to fill content of the objects!!! Thank you so much and thumb up!
@DarkAyumu
@DarkAyumu 2 жыл бұрын
Please make more videos, and the editor tutorial if you can that would be splendid. I want to know about Custom Editor and I'd love to hear it from you.
@asembahra6187
@asembahra6187 3 жыл бұрын
very nice video as always . best of luck doing more .
@InexperiencedDeveloper
@InexperiencedDeveloper 3 жыл бұрын
Love the unique experience you bring to the game dev community!
@NewbNinjas
@NewbNinjas Жыл бұрын
+ Would love to see the advanced editor stuff, especially the weapons example, perhaps using JSON + validation? Great work JS, thanks again!
@dermotbyrnemusic
@dermotbyrnemusic 3 жыл бұрын
Great video Jason - looking forward to more of your content! Great to see these editor tips!
@robosergTV
@robosergTV 3 жыл бұрын
Ok the video editing is awesome
@revraitah
@revraitah 2 жыл бұрын
Really cool, never thought about this before!
@rani600
@rani600 3 жыл бұрын
Love it! Although a note about audio, it's seems like your volume is really low compared to the editing popups.
@georgekourris798
@georgekourris798 3 жыл бұрын
Very good explanation of why arrays aren' t the best approach when comes to data editing and reading. Also thank you for teaching a new for me at least class the textasset, but I tried using also something new that I saw the required attribute and the visual studio compiler wasn' t recognizing it, it was only displaying me the requirecomponent attribute. Does anyone know why I couldn' t access it ?
@ElegantWaster
@ElegantWaster 2 жыл бұрын
Great video topics. Simple tips that should be shared more often. I'm surprised things like this aren't more prominent on Unity Learn. I'm just disappointed you don't start your videos by asking "What's the Storey?".
@oyaguni961
@oyaguni961 2 жыл бұрын
Thank you for your content, this format is really informative, easy to digest and to understand. Love it!
@vizweb
@vizweb 3 жыл бұрын
There was a young lady from Venus... Loving these videos, packed with useful tips and now humor!
@antijulius
@antijulius 2 жыл бұрын
Editor Extension stuff. Would love deep hard details on that.
@018FLP
@018FLP 2 жыл бұрын
Hmmm, i really love a well edited tutorial video, and you surely scratch that itch, insta subd * cheff's kiss *
@madscientist338
@madscientist338 2 жыл бұрын
You're awesome, thanks for the video!
@thepanable5004
@thepanable5004 2 жыл бұрын
that star trek reference was gold! I didn't know you watch star trek
@kay-dp8qw
@kay-dp8qw Жыл бұрын
Very helpful, thank you so much for your videos :)
@Iridium.
@Iridium. Жыл бұрын
Would ve loved to see him make more videos..
@Malicos
@Malicos 3 жыл бұрын
Insta-hooked on this channel!
@KonaiNobi
@KonaiNobi 2 жыл бұрын
Editor extensions -- yes! :D
@Elenthiriel
@Elenthiriel 3 жыл бұрын
Man, i love your tips
@alextreme98
@alextreme98 2 жыл бұрын
Such a good example, thanks a lot :D
@IndieDX
@IndieDX 2 жыл бұрын
Genius! Thanks for sharing!
@DaniArkadia
@DaniArkadia 3 жыл бұрын
That Barely an inconvenience got me xD
@pliniomourao
@pliniomourao 2 жыл бұрын
Yes, please address the Editor code. That's something i'd love to see and adventure into it.
@Andreasohlin
@Andreasohlin 2 жыл бұрын
I can see you doing the "hello there" in every intro.
@Rafaelcraftero
@Rafaelcraftero 2 жыл бұрын
high skilled editor
@towercrowgames5115
@towercrowgames5115 2 жыл бұрын
Would love a vid on validation in this context.
@WildPork
@WildPork Жыл бұрын
Deserves a 'like' just for the use of "barely an inconvenience"
@jorisvaneijden5684
@jorisvaneijden5684 3 жыл бұрын
Funny and informative, a golden combination!
@ZettaiKennedy
@ZettaiKennedy 2 жыл бұрын
I like the editing. Reminds me a bit of that silly style of Clean Code videos :D
@Amheklerior
@Amheklerior 3 жыл бұрын
That’s a great one Jason ;) thanks
@iDerp69
@iDerp69 3 жыл бұрын
Super cool -- definitely will be using this in my project.
@goehlergamedev
@goehlergamedev 2 жыл бұрын
Lol. Loved that Ryan George reference :P
@bluzenkk
@bluzenkk 2 жыл бұрын
this is super useful. Thanks!!!!
@AlexBlackfrost
@AlexBlackfrost 3 жыл бұрын
Nice video and editing! I'd like to see more videos about editor coding
@sebastianbryant4216
@sebastianbryant4216 2 жыл бұрын
I'm only 30 seconds in and I can tell you I already like the memes. 👍
@ostunij
@ostunij 3 жыл бұрын
“Hardly an inconvenience”. 😀
@alexxxchange
@alexxxchange Жыл бұрын
thank you for this!
@TChrisBaker
@TChrisBaker 3 жыл бұрын
Very informative video ! I would find it useful to face a video about an editor script. That's something I always struggle with
@GrimOfDonuts
@GrimOfDonuts 2 жыл бұрын
JSON serialization & scriptable objects are better alternatives depending on your needs
@theearthburner6159
@theearthburner6159 3 жыл бұрын
Very epic
@RichardTongeman
@RichardTongeman 2 жыл бұрын
Ahhh I've always wanted to know how to do this!
@nocturne6320
@nocturne6320 2 жыл бұрын
A lot easier and more robust approach would be to use JsonUtility to serialize/deserialize the objects within textfiles
@naxxtor
@naxxtor 2 жыл бұрын
Late to the party but thanks for the useful video! Any thoughts on loading larger quantities of data (e.g. big datasets generated by another process outside of unity ?)
@lewaplay
@lewaplay 2 жыл бұрын
masterpiece
@mohammadalinia8919
@mohammadalinia8919 3 жыл бұрын
Fantastic!
@pixeldevlog
@pixeldevlog 2 жыл бұрын
Great video !
@aoliepung5692
@aoliepung5692 2 жыл бұрын
Thank Jason
@antonionii
@antonionii 2 жыл бұрын
I was trying to recreate the items script file you made but the video cuts off and I'm sort of lost... Where do you call the ConvertToItem method?
@LackingGumption
@LackingGumption 2 жыл бұрын
nice. love the see that
@treppas
@treppas 2 жыл бұрын
🤯 thank you!
@mademade5939
@mademade5939 3 жыл бұрын
Yes, editor extension stuff
@NoahFarber
@NoahFarber 3 жыл бұрын
Great editing! And a great tip.. Quality content overall \
Software Architecture in Unity
7:13
Jason Storey
Рет қаралды 116 М.
A BETTER way to setup new unity projects!
15:44
Jason Storey
Рет қаралды 55 М.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 50 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 23 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
How to find any resource you are looking for!
12:39
Jason Storey
Рет қаралды 20 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 526 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 552 М.
Why is unity so slow!
5:53
Jason Storey
Рет қаралды 69 М.
10 FORBIDDEN Sorting Algorithms
9:41
Ardens
Рет қаралды 846 М.
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 295 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 620 М.