Skip to content

如何在ts中查找DataTable的某一行? #1859

Answered by NashXY
NashXY asked this question in Q&A
Discussion options

You must be logged in to vote

不好意思没注意,这样改后确实可以

let TestStruct1 = UE.UserDefinedStruct.Load("UserDefinedStruct'/Game/Blueprints/Type/Struct/Weapon/GunInfo.GunInfo'"); let Test1 = UE.NewStruct(TestStruct1); UE.DataTableFunctionLibrary.Generic_GetDataTableRowFromName(this.GunDataTable, "1001", Test1); const result = Test1 as UE.Game.Blueprints.Type.Struct.Weapon.GunInfo.GunInfo;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NashXY
Comment options

Answer selected by NashXY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants