Hello guys!
I’m stuck with accesing my Data Table. Let me explain exactly what i need to do. I tried to follow this guide
: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums
I want to:
1.)Create DataTable in Editor.
2.)Access it in my C++ code
3.) Create functions that uses those values from DataTable
However I can’t quite figure how to make it work properly.
Guide says i can create my DataTable in one of two ways:
via code and via editor. That’s great. I’ve chosen to do it in editor. But then i have problem with access.
There is code line looking like this:
FGameObjectLookupTable* GOLookupRow = GameObjectLookupTable->FindRow<FGameObjectLookupTable>(
*FString::Printf(
TEXT("%d"),
GoID),
ContextString
);
Now my question is, how do i get this FGameObjectLookupTable struct name from editor created DataTable? It’s first time ever i try to use them so it can sounds nooby for you. If there is any easier way to access editor created DataTable in code please let me know