The Property bag is the cornerstone of Unity.Properties—a powerful system that lets you generically access, inspect, and modify object data at runtime without reflection. In this video, we’ll show you how property bags, visitors, and adapters work together to build flexible, high-performance systems for tooling, UI binding, data validation, and more. You’ll learn how to write your own visitors, construct property paths, and use these patterns to create runtime features that adapt to any data structure. Whether you're building custom inspectors, debug panels, or save systems, this deep dive will change how you think about structured data in Unity.
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 Property Bag and CreateProperty
3:38 PropertyVisitor
6:20 Adapters
8:07 Low-Level APIs and PropertyPath
12:47 Code Gen
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)_
Pure Nature 2: Jungle - https://assetstore.unity.com/packages/3d/environments/pure-nature-2-jungle-296552?aid=1101lw3sv
DarkMode for Unity Editor - https://assetstore.unity.com/packages/tools/gui/darkmode-for-unity-editor-on-windows-281842?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
Wingman - https://assetstore.unity.com/packages/tools/utilities/wingman-your-inspector-s-best-friend-303181?aid=1101lw3sv
Favorites Window - https://assetstore.unity.com/packages/tools/utilities/favorites-window-123487?aid=1101lw3sv
Logwin - https://assetstore.unity.com/packages/tools/utilities/logwin-log-debug-values-tracker-149558?aid=1101lw3sv
TimeScale Toolbar - https://assetstore.unity.com/packages/tools/utilities/timescale-toolbar-291564?aid=1101lw3sv
Odin - https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041?aid=1101lw3sv?aid=1101lw3sv
Odin Validator - https://assetstore.unity.com/packages/tools/utilities/odin-validator-227861?aid=1101lw3sv
Hot Reload: https://assetstore.unity.com/packages/tools/utilities/hot-reload-edit-code-without-compiling-254358?aid=1101lw3sv
Better Hierarchy: 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
DevTasks - Offline Project Manager - https://assetstore.unity.com/packages/tools/utilities/devtasks-offline-project-manager-307257?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
Clipper PRO: https://assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?aid=1101lw3sv
Kybernetic Tools: https://assetstore.unity.com/publishers/16747?aid=1101lw3sv
Sisus Tools: https://assetstore.unity.com/publishers/41398?aid=1101lw3sv
Prime Tween - https://assetstore.unity.com/packages/tools/animation/primetween-high-performance-animations-and-sequences-2529607?aid=1101lw3s
Rabbit Logger - https://assetstore.unity.com/packages/tools/utilities/rabbit-logger-305396?aid=1101lw3s
Clipper PRO: https://assetstore.unity.com/packages/tools/utilities/clipper-pro-the-ultimate-clipboard-277112?aid=1101lw3sv
Find Reference 2: https://assetstore.unity.com/packages/tools/utilities/find-reference-2-59092?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend