What Are Data Tables - Beginners Guide To Unreal Engine 5 | Saragan

  Рет қаралды 570

SaraganDev

SaraganDev

Күн бұрын

Пікірлер: 8
@LEGIT_ELITE
@LEGIT_ELITE Жыл бұрын
I'm trying to use a Data Table in a World Subsystem is there a way to make sure its using the Data Table asset since the subsystem doesn't have a blueprint implementation?
@saragandev
@saragandev Жыл бұрын
sorry for the late reply (youtube has has finally decided to show me this comment :( ) good question. if you are not using a blueprint derived version you could always expose the data table variable inside the subsystem to blueprints to check that the data is there. Making things blueprint accessible isn't hard and one you have determined it is working you can always take it out again or after you set it from the asset you can just use the find row and UE_LOG it to the console to make sure it is there? generally if I am doing it though I run the code from visual studio in debug mode and use breakpoints to make sure that the variable is getting set correctly
@WeirdGoat
@WeirdGoat Жыл бұрын
Great tutorial! Just 1 question, I created my structure with blueprint, how to reference it in a c++ class? Thanks!
@saragandev
@saragandev Жыл бұрын
Structures made in blueprints, same as blueprints themselves exist virtually in unreal Engine reflection system and can be accessed only in runtime. This means that in C++ you would not be able to access that structure you created in blueprints, best idea would be to re-create that same structure in c++ and recreate that data table (if it is identical you could export the data first and re-import it in the new one) the only other way I could think of doing it would be to create blueprint assignable delegate functions in c++ that return a value e.g. DECLARE_DELEGATE_RetVal_OneParam and assign it in blueprint to return a value out of that struct but really I would advise just recreating that struct in c++ :)
@WeirdGoat
@WeirdGoat Жыл бұрын
@@saragandev Thanks a lot!
@Athasin
@Athasin Жыл бұрын
⁠@@saragandev Hey, I’m trying to recreate my BP structs in C++, but I’m stumped on the syntax for one property, and I was wondering if you can help me. Quick overview, I have a Struct called Item Data containing variables like Mesh, Icon, Name, Description, StackSize. I took this Struct (Item Data) and made a data table called Item Database. I then made another Struct called Item Info containing the variables Quantity (int) and ItemID (Data Table Row Handle of the Item Database data table). I have been able to recreate all of this in C++ EXCEPT the data table row handle property. So my question is, do you know to make a property of a data table row handle using a specific data table in C++?
@saragandev
@saragandev Жыл бұрын
@@Athasin sorry for the late reply, youtube has been hiding my messages and replies :( did you sort it? is it not just FString, then for the data table row FYourStruct* Item = YourDataTable->FindRow(RowName, "");
@Athasin
@Athasin Жыл бұрын
@@saragandev Yes, I did manage to figure it out. Thanks for still replying though!
UE5 Tutorial - Enhanced Input - Blueprints & C++ | Saragan
12:35
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
UE5 Tutorial - cleaning up your blueprints | Saragan
17:28
Gamedev Spreadsheets: Practical Example
25:31
Craig Perko
Рет қаралды 4,3 М.
Data Tables and Structures in Unreal Engine
15:50
Tsar Char Char
Рет қаралды 173
What are Data Tables in Unreal Engine 5
8:31
Code With Ro
Рет қаралды 761
Blueprints 107 - Enums, Structs and DataTables
13:44
tharlevfx
Рет қаралды 11 М.
Learn How to Use DATA TABLES in BLUEPRINT to Set Actor Values in UE5
18:28
Lets Talk About Asset Manager
20:07
Rukgul
Рет қаралды 8 М.
Unreal Engine - Base Classes Explained
11:19
JimDublace
Рет қаралды 6 М.
Unreal Engine 5 Tutorial - Data Assets
11:13
Ryan Laley
Рет қаралды 60 М.