Using Scriptable Objects as Types for Gameplay - Unity GameDev Tutorial
Chris' Tutorials
Showing how you can use scriptable objects to create types for players, enemies, or abilities without hard coding them like enums and being able to have multiple types for one object unlike tags. In this demo, we selectively choose whether a mushroom enemy can walk on spikes without taking damage or not through those types defined by creating scriptable objects in the project assets folder.
Type Examples (You'd probably create a different ScriptableObject type for each category you want) Allegiance Type: Player, NPC, Enemy Element Type: Fire, Water, Wind, Earth Classification: Giant, Spider, Dragon
Scripts and Assets ➣ https://www.patreon.com/posts/scriptable-76670129
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me https://www.patreon.com/christutorials https://chris-tutorials.itch.io/ https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥ Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect 00:23 - Use Case to Solve 01:27 - Tutorial Start Demo 02:13 - Using Tags 03:45 - Types as Scriptable Object 15:49 - Wrapup ... https://www.youtube.com/watch?v=szTPWbVh2YE
71752983 Bytes