Developer_Bastian

Unreal Engine - Find Row in DataTable

Jan 10th, 2024 (edited)
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | Gaming | 0 0
  1. // Developer Bastian © 2024
  2. // License Creative Commons DEED 4.0 (https://creativecommons.org/licenses/by-sa/4.0/deed.en)
  3. // Tutorial video at https://youtu.be/le4VYlJXASg
  4. // Part of an Unreal Basics video tutorial series at: https://bit.ly/Unreal_Basics_en
  5.  
  6.  
  7. // Example for finding a row in the DataTable - ONLY possible for row name
  8. FString rowName = "NoAuth";
  9. FString Context = "DataTable Tests";
  10. FConnectionInfo *conn = this->ConnectionsDT->FindRow<FConnectionInfo>(FName(*rowName), Context, false);
  11. if (conn)
  12. {
  13.     UE_LOG(LogTemp, Log, TEXT("BA_DataLoader: DataRow '%s' has url '%s'"), *rowName, *conn->ConnectionUrl);
  14. }
Add Comment
Please, Sign In to add comment