Great explanation and example with the meshes!! Thank you so much! Small question, are data assets meant to be read-only or can I also write to them? Currentley I'm using a data asset to act like a "shared variable" between all instances of a certain class. The asset only holds a reference to a widget "The currently active widget in the world" and I want all instances of an Actor Component to have access to read/write to this variable. i.e. Every component of this class can read the active widget reference, or activate it's own widget and overwrite the previous one etc.
It depends on the intended use honestly, either or could be suitable however data assets may be easier to utilize to spawn creatures into the world so you don’t have to iterate through a data table with hundreds of lines. However like I said it depends on the “how” you use them
@@MrButiier yeah a bit to tricky to describe here.. with how I intend to use this. I will take it to the Discord server. Been enjoying the video playlists.
@@RoeJogan Oh great to have you join the discord! Glad you're enjoying the playlists, I spent some time 3 weeks ago adjusting all the playlists videos so i did it just in time for you haha
Great explanation and example with the meshes!!
Thank you so much!
Small question, are data assets meant to be read-only or can I also write to them?
Currentley I'm using a data asset to act like a "shared variable" between all instances of a certain class. The asset only holds a reference to a widget "The currently active widget in the world" and I want all instances of an Actor Component to have access to read/write to this variable. i.e. Every component of this class can read the active widget reference, or activate it's own widget and overwrite the previous one etc.
Great, thanks!
If you know you are going to have 100s of different characters/creatures is it better to do it with a struct and data table vs Data assets?
It depends on the intended use honestly, either or could be suitable however data assets may be easier to utilize to spawn creatures into the world so you don’t have to iterate through a data table with hundreds of lines. However like I said it depends on the “how” you use them
@@MrButiier yeah a bit to tricky to describe here.. with how I intend to use this. I will take it to the Discord server. Been enjoying the video playlists.
@@RoeJogan Oh great to have you join the discord! Glad you're enjoying the playlists, I spent some time 3 weeks ago adjusting all the playlists videos so i did it just in time for you haha