UE5 - Understanding the Basics of Data Assets

  Рет қаралды 1,810

MrButier

MrButier

Күн бұрын

Пікірлер: 7
@BenskiGameWorks
@BenskiGameWorks 2 ай бұрын
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.
@MrButiier
@MrButiier Ай бұрын
I just realized I never responded here! Data Assets are absolutely amazing but can become complicated very quickly if you don't use C++. The data assets created are meant to be read-only, you can write to them however this will change the values to the data asset permanently in-game and in-editor. If you do go the route of re-writing a variable in game, then you would need to make sure to reset this value upon the next time the game starts somewhere in your scripting to set the initial value. There are ways to get around the annoyance of re-writing the permanent data by creating a new object of the data asset class and then setting the values to the newly created DA, you can then use that as a reference and it won't have any impact in the data asset outside of runtime. (bare in mind, this is a very huge rabbit hole to fall in and loading/unloading data assets can be quite extensive but worth the learning experience if you master it).
@jingjingmannen
@jingjingmannen 6 ай бұрын
Great, thanks!
@RoeJogan
@RoeJogan 4 ай бұрын
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?
@MrButiier
@MrButiier 4 ай бұрын
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
@RoeJogan
@RoeJogan 4 ай бұрын
@@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.
@MrButiier
@MrButiier 4 ай бұрын
@@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
UE5 - Change Mouse Cursor (Software Cursor)
9:29
MrButier
Рет қаралды 467
Unreal Engine 5 Tutorial - Data Layers
10:02
Ryan Laley
Рет қаралды 40 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Lighting in Unreal Engine 5 for Beginners
44:44
William Faucher
Рет қаралды 1,1 МЛН
UE5 Understanding hard and soft references - Be a better game dev
19:58
UE5 - Data Assets
11:01
gameDev Outpost
Рет қаралды 432
Understanding "Components" in Unreal Engine | UE5 Explained
28:11
Ali Elzoheiry
Рет қаралды 59 М.
Learn Modular -Data Driven- Programming - Unreal Engine 5's Blueprint
22:26
UE5 Layered Material Workflow Breakdown - Intermediate class
1:20:11
Daniel Cormino
Рет қаралды 20 М.
UE5 - Data Assets - Shared Communication with Blueprints
8:01
gameDev Outpost
Рет қаралды 579
Learn How to Use DATA TABLES in BLUEPRINT to Set Actor Values in UE5
18:28
Unreal Engine Data Assets EXPLAINED
11:23
The Game Dev Cave
Рет қаралды 10 М.
I Struggled With Blueprint Interfaces for Years!! (Unreal Engine 5)
16:48
Glass Hand Studios
Рет қаралды 199 М.