Uploaded October 2024 | Updated September 2026, 18 hours ago
State Machine fundamentals are taken to the next level with Stack-Based Push Down Automata (PDA), where we explore the power of stack-driven control in game systems. In this video, you’ll learn how a PDA can manage complex behaviors by allowing states to push, pop, and peek through a stack of layered contexts, adding flexibility to any character or game system with historical depth. Whether responding to temporary effects, handling nested actions, hunting down the player, or managing complex crafting or inventory tasks, a PDA framework enriches state machines with memory, enabling more dynamic, responsive gameplay.
Want to support me? 😀
Buy me a coffee! ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials youtube.com/@git-amend
Discord: discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Push Down Automata
3:35 Controller
6:53 Idle and Collect Materials
9:24 Refine Materials
11:36 Counter Effects
15:05 Crafting Complete
*Source code:* gist.github.com/adammyhre/9cc8154d2c79c3b9154dc1c70d4d56cd
More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets Shown In This Video (Affiliate Links)
Robot Kyle: assetstore.unity.com/packages/3d/characters/robots/robot-kyle-urp-4696?aid=1101lw3sv
Time Scale Toolbar FREE: assetstore.unity.com/packages/tools/utilities/timescale-toolbar-291564?aid=1101lw3sv
Ultimate Workshops and Crafting: assetstore.unity.com/packages/3d/environments/fantasy/afs-ultimate-workshops-and-crafting-246182?aid=1101lw3sv
4K Full Fantasy GUI: assetstore.unity.com/packages/2d/gui/4k-full-fantasy-gui-over-400-png-samples-116891?aid=1101lw3sv
RPG Vampire Icons: assetstore.unity.com/packages/2d/gui/icons/rpg-vampire-icons-295380?aid=1101lw3sv
6000 Fantasy Icons: assetstore.unity.com/packages/2d/gui/icons/6000-fantasy-icons-278148?aid=1101lw3sv
Stylized VFX Trees: assetstore.unity.com/packages/vfx/particles/environment/stylized-vfx-trees-gpu-based-effect-238647?aid=1101lw3sv
Hot Reload: assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Hierarchy Icons: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent--276554?aid=1101lw3sv
Better Mesh Filter: assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Editor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend
State Machine fundamentals are taken to the next level with Stack-Based Push Down Automata (PDA), where we explore the power of stack-driven control in game systems. In this video, you’ll learn how a PDA can manage complex behaviors by allowing states to push, pop, and peek through a stack of layered contexts, adding flexibility to any character or game system with historical depth. Whether responding to temporary effects, handling nested actions, hunting down the player, or managing complex crafting or inventory tasks, a PDA framework enriches state machines with memory, enabling more dynamic, responsive gameplay.
Want to support me? 😀
Buy me a coffee! ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials youtube.com/@git-amend
Discord: discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Push Down Automata
3:35 Controller
6:53 Idle and Collect Materials
9:24 Refine Materials
11:36 Counter Effects
15:05 Crafting Complete
*Source code:* gist.github.com/adammyhre/9cc8154d2c79c3b9154dc1c70d4d56cd
More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets Shown In This Video (Affiliate Links)
Robot Kyle: assetstore.unity.com/packages/3d/characters/robots/robot-kyle-urp-4696?aid=1101lw3sv
Time Scale Toolbar FREE: assetstore.unity.com/packages/tools/utilities/timescale-toolbar-291564?aid=1101lw3sv
Ultimate Workshops and Crafting: assetstore.unity.com/packages/3d/environments/fantasy/afs-ultimate-workshops-and-crafting-246182?aid=1101lw3sv
4K Full Fantasy GUI: assetstore.unity.com/packages/2d/gui/4k-full-fantasy-gui-over-400-png-samples-116891?aid=1101lw3sv
RPG Vampire Icons: assetstore.unity.com/packages/2d/gui/icons/rpg-vampire-icons-295380?aid=1101lw3sv
6000 Fantasy Icons: assetstore.unity.com/packages/2d/gui/icons/6000-fantasy-icons-278148?aid=1101lw3sv
Stylized VFX Trees: assetstore.unity.com/packages/vfx/particles/environment/stylized-vfx-trees-gpu-based-effect-238647?aid=1101lw3sv
Hot Reload: assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Hierarchy Icons: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent--276554?aid=1101lw3sv
Better Mesh Filter: assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Editor Console Pro: assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend


![10 Useful C# Attributes for Intermediate and Advanced Game Devs
C# Attributes are a powerful tool for customizing and extending the behavior of your code, especially in game development where performance and clarity matter most. In this video, we explore attributes that can elevate your projects to the next level. From controlling memory layouts with `[StructLayout]` and `[FieldOffset]`, to ensuring robust runtime behavior with `[NotNull]` and `[UsedImplicitly]`, this guide dives into practical use cases for both performance optimization and tooling enhancements. Whether youre working with Unity, creating custom editors, or tackling advanced interop scenarios, these attributes will help you write cleaner, faster, and more efficient code.
Scene Reference Attribute: https://github.com/KyleBanks/scene-ref-attribute
Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials https://youtube.com/@git-amend
Discord: https://discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 StructLayout, FieldOffset, Preserve
3:50 InspectorName, DefaultExecutionOrder
5:40 NotNull, CanBeNull, UsedImplicitly
8:45 PreferBinarySerialization
11:10 SelectionBase
12:10 Child, Parent, Self, Anywhere
Correction: 04:47 Enum Search is from Odin Inspector and is compatible with InspectorName
More Useful Code:
https://github.com/adammyhre?tab=repositories
Unity Utility Library: https://github.com/adammyhre/Unity-Utils
Lock Inspector Hotkey: https://gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets Shown In This Video (Affiliate Links)
Odin - https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1101lw3sv
Odin Validator - https://assetstore.unity.com/packages/tools/utilities/odin-validator-227861?aid=1101lw3sv
Heroic Creatures: https://assetstore.unity.com/packages/3d/characters/creatures/heroic-fantasy-creatures-full-pack-volume-1-5730?aid=1101lw3sv
Dynamic Nature: https://assetstore.unity.com/packages/3d/vegetation/forest-environment-dynamic-nature-150668?aid=1101lw3sv
Beautify: https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Umbra Soft Shadows: https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/umbra-soft-shadows-better-directional-contact-shadows-for-urp-282485?aid=1101lw3sv
Cloud Shadows: https://assetstore.unity.com/packages/vfx/shaders/cloud-shadows-fx-267702?aid=1101lw3sv
Timeflow: https://assetstore.unity.com/packages/tools/animation/timeflow-animation-system-247895?aid=1101lw3sv
Hot Reload: https://assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Hierarchy Icons: https://assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: https://assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent 276554?aid=1101lw3sv
Better Mesh Filter: https://assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Editor Console Pro: https://assetstore.unity.com/packages/tools/utilities/editor-console-pro-11889?aid=1101lw3sv
Any Object Finder: https://assetstore.unity.com/packages/tools/utilities/any-object-finder-286455?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend 10 Useful C# Attributes for Intermediate and Advanced Game Devs](https://i.ytimg.com/vi/mB4KaZ4GcH4/mqdefault.jpg)







