So I Built that State Machine Visualiser...

Ғылым және технология

Heya Pals!
After last video I went ahead and built the StateTree visualiser that I was wishing I had. Surprisingly, it didn't take very long and has already been a big help building enemies for Insignia.
Thanks for watching!
Music: STARDEW & CHILL | Dj Cutman, Coffee Date, Gamechops | Gamechops.com
Chapters:
0:00 - Introduction
1:03 - The Editor
2:04 - Design
6:50 - Demo
8:58 - About Custom Editors in Unity
10:02 - EditorWidow Class
14:51 - StateTree Data Structure
18:52 - State History & Reporting
22:51 - Reflection
24:14 - Outro
----
This video features clips from my stream. Catch it live: Mon, Tues, Thurs and Fri 1-6pm AEST.
Twitch: / adamcyounis
Twitter: / adamcyounis
Discord: / discord
Become a Patron at / adamcyounis
Download assets and games from the stream at uppon-hill.itch.io/
Later, pals!

Пікірлер: 48

  • @hunter_bluemane5822
    @hunter_bluemane58222 жыл бұрын

    I just wanted to say that your videos have been all I've watched the past 2 weeks, I love your content beyond belief, you singlehandedly sparked my love for creating after a tough time in my life and every time you post something new I race to enjoy it, please keep doing what your doing, I cant wait to see more of you and your content 🥰🥰🥰

  • @apoxfox

    @apoxfox

    Жыл бұрын

    Couldn’t agree more

  • @gareths
    @gareths2 жыл бұрын

    Also, Freya Holmer has a great series on Tool Dev for anyone wondering! Unity Editors is a hella broad topic tho, you can do so much with them

  • @Milkshakist
    @Milkshakist2 жыл бұрын

    Appreciate how much time and effort you do for these videos. Thank you.

  • @joelcreatesgames7148
    @joelcreatesgames71482 жыл бұрын

    I'm so glad you are sharing these systems. I think editor windows aren't covered very well online, and even without making tutorials, just showing off your systems and their code is incredibly helpful. Keep up the good work

  • @bertiedev6478
    @bertiedev6478 Жыл бұрын

    these videos are super relaxing and chilled to watch, i really enjoy them!

  • @nathantonning
    @nathantonning2 жыл бұрын

    Another good video, Adam. Thanks for the information!

  • @fmvlee
    @fmvlee2 жыл бұрын

    Thanks for taking the time to walk through how you created this. Seeing how tools can support debugging like this is great especially when this is a real scenario for you with live examples of how its helped rather than a tutorial

  • @rapasdecoeur7017
    @rapasdecoeur70172 жыл бұрын

    Thank you ! I'm planning to build a state machine and your last videos helped a lot

  • @victornpb
    @victornpb2 жыл бұрын

    This kind of videos teach you so much more than tutorials, don't worry about it. I have all the info I need to be able to try to build something myself. THANK YOU!

  • @Tharky
    @Tharky2 жыл бұрын

    Great video! Thanks for the info Adam!

  • @sum1221
    @sum12212 жыл бұрын

    I love your energy, it's very welcoming.

  • @jumpkut
    @jumpkut2 жыл бұрын

    Super cool man. Keep sharing!

  • @larstudio1854
    @larstudio18542 жыл бұрын

    First of all thank you so much Adam for putting in so much effort in these videos! I really appreciate your work and effort👍🏻 While I was watching I was just astonished about the knowledge you‘ve built up over the years🙇‍♂️ A lot of the things you were talking about, I didn‘t even know, we as gamedevelopers using the Unity engine, are even able to build. My head was like: 🤯“what this is possible?!?“ Next thing I was thinking: „I need to learn this! I need to be able to do this! This is the next level I need to archive in order to build the things I want to!“ So even though you said at the end of your video. You aren‘t planning to do concrete tutorials... I can do nothing but to encourage you to do so anyway. Cause let‘s be honest at the end of the day your system works! It gets the job done it needs to. And this is all we need. Improving a system is something you can worry about later. I think the way to go in game development (or generally in life) is just to start doing the things and not be afraid of failing. Because we know at the end it is the fails and only the fails... that‘ll make us grow.

  • @abdoulraoufgambo
    @abdoulraoufgambo2 жыл бұрын

    God bless you my friend. I like when you do video on State machine

  • @durrium
    @durrium2 жыл бұрын

    Very interesting! Do you have a video on your folder structure? :)

  • @funteav3437
    @funteav34372 ай бұрын

    Hi Adam, is this accessible on the Patreon page? if not, I hope this is included in the current State Machine Tutorial that you started recently - that would be really awesome.

  • @322ss
    @322ss2 жыл бұрын

    Pretty neat IMGUI based Editor Window in two days...! Adding zoom might be neat, there is an old article by Martin Ecker, it explains the concept. However, doing the whole thing with new UI system could be easier, if you want to add zoom and panning.

  • @unityecsdev
    @unityecsdev2 жыл бұрын

    this looks like more a behaviour tree rather than a FSM

  • @DiluteOxygen
    @DiluteOxygen2 жыл бұрын

    Good work

  • @CanalDojogames
    @CanalDojogames Жыл бұрын

    You are really very good on unity3d and pixel Art. I follow you for about 1 year or 2. I always learn a lot. Thank you. I personally am bad on programming line, so i am waiting for rpg make unite that will integrate on unity3d meaning easy wait to build but in 3d. 5 years ago i did an huge map for rpg on unity 3d for 2 times and one huge on unreal engine 4. But i didnt continued for personal issues and i am bad on programming line..I am better learning new talk language. Hahahaha. Thank you for always inspire me

  • @DaElfer
    @DaElfer2 жыл бұрын

    Your way of doing the animations without using the animator or animation clips has answered a questions ive been searching for on unity answers for over a year now. How to change sprite sheets in code at run time which i couldnt find how to change a sprite keyframe in an animation file but i sure as hell can change a sprite in a list. THANK YOU!!!!. I can now download a new spritesheet skin from the internet runtime, slice it up, and replace the sprites in the list. one more thing though. been looking through your videos to see if you mention it but never found an answer. What whiteboard (blueboard) software do you use? or is it just photoshop with a huuuuge blue background empty file

  • @AdamCYounis

    @AdamCYounis

    2 жыл бұрын

    It's called Leonardo, for windows

  • @DaElfer

    @DaElfer

    2 жыл бұрын

    @@AdamCYounis much thanks. The one I'm using now isn't as good

  • @DaElfer

    @DaElfer

    2 жыл бұрын

    @@AdamCYounis works nice. just got to create a shortcut profile on my stream stream deck and it will be awesome

  • @YmanYoutube
    @YmanYoutube Жыл бұрын

    The drip tho 🥶🥶🥶

  • @_g_r_m_
    @_g_r_m_2 жыл бұрын

    I've had a project in mind for a while for wich I need a visible state machine and I was just going to force animator to do the job, but that's way better, I thought it would be way more complicated to build one.

  • @gareths
    @gareths2 жыл бұрын

    I think this is the first time I’m actually understanding Reflection. So, without Reflection, the only child state that the editor would know about is the one that is selected, as all Behaviour states inherit that. But using Reflection, the editor can know what other states you have references for in a class, and then can draw them on the editor?

  • @AdamCYounis

    @AdamCYounis

    2 жыл бұрын

    That's right. Reflection let's us check within a class definition for fields that match a specific type, so that's how I traverse this tree-like setup, where I've got state components referenced in state components.

  • @thedankestdungeon8091
    @thedankestdungeon8091 Жыл бұрын

    What is the blue board thing you are using to write and paste images on?

  • @occamsrazor9183
    @occamsrazor9183 Жыл бұрын

    Greetings, I am trying to find out the perfect pixel numbers for the clearest resolution with a personal image of myself (A human) for a KZread avatar photo, can I ask you what that number is?

  • @watagree
    @watagree2 жыл бұрын

    what the software he uses when doing the sketches?

  • @mark9056
    @mark9056 Жыл бұрын

    what app do you use for pixel art?

  • @Dan-yd2jq
    @Dan-yd2jq2 жыл бұрын

    What is a state editor used for?

  • @jezmorgan5440
    @jezmorgan544010 ай бұрын

    does tis guy make moving wallpapers or gifs? I like his art and want to download it

  • @dan445678
    @dan44567811 ай бұрын

    What were your reasons for switching to this vs. the built-in animator?

  • @AdamCYounis

    @AdamCYounis

    11 ай бұрын

    The unity animator is a kind of state machine, but not really equivalent to the system I'm using to drive behaviour in my game. I'm using behaviour state trees because they seemed like an intuitive way to structure hierarchical behaviour that's also modular, so different enemies can each have lots of depth just by hooking up pre-defined components. The visual graph is just a tool for debugging, i don't use it to build or manage the state machines like you would in the animator.

  • @Hawk6895
    @Hawk6895 Жыл бұрын

    Guys what is the name of the channel, brackie?

  • @hacker_man_sam5157
    @hacker_man_sam5157 Жыл бұрын

    lol should've just used xNode ya goober

  • @umapessoa6051
    @umapessoa60512 жыл бұрын

    I love your videos and your streams, but please, use string interpolation, it hurts to see lots of string concatenation... Don't: string test = ". " + blabla + " . reason: " + reason + ". another message here"; Do: string test = $".{blabla} . reason: {reason}. another message here";

  • @AdamCYounis

    @AdamCYounis

    2 жыл бұрын

    Just for you, I'll keep doing it my way :)

  • @umapessoa6051

    @umapessoa6051

    2 жыл бұрын

    @@AdamCYounis FeelsBadMan

  • @thalesrodriguescardoso

    @thalesrodriguescardoso

    Жыл бұрын

    @@AdamCYounis way to go

  • @youngmidoria2332
    @youngmidoria23322 жыл бұрын

    No offense but it kinda seems like u gain weight yout face looks a bit more plumy 👀

  • @PeterVescro

    @PeterVescro

    2 жыл бұрын

    No offence but this is a really weird thing to comment on

  • @youngmidoria2332

    @youngmidoria2332

    2 жыл бұрын

    @@PeterVescro rlly 🤣

  • @definitelynotnick2454

    @definitelynotnick2454

    Жыл бұрын

    So have I, thanks covid

Келесі