In this Unity3d tutorial we learn how to create and use ScriptableObjects to replace C# enums or enumerations in a flexible and extensible approach. We'll use this to setup a simple elemental damage system with different damage types like fire, ice, and poison. The idea is that we can check equality against the ScriptableObject asset, instead of checking against an Enum entry. We can also add data or code to these objects as needed. This is an adaptation of an approach shown by Richard Fine and Ryan Hipple in their respective Unite talks which can be found in the Scriptable Cookbook playlist here:
• Scriptable Cookbook: Unity ScriptableObjec...
In questa pagina del sito puoi guardare il video online Scriptable Cookbook: Damage Type System With ScriptableObject Enums (Unity Tutorial) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Matt MirrorFish 11 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 12,971 volte e gli è piaciuto 461 spettatori. Buona visione!