feat(test): add real UE 5.8 RunLuaTests commandlet, Lua.RunTests command, and fix UnLua .d.ts math/UObject bugs

This commit is contained in:
szy73711 committed 2026-11-29 15:05:35 +08:00
1 parent 3dd61c32a9
commit 96e3f0d009
29 files changed
+1417 -134

No files matched your search

+10 -1
View File
@@ -382,7 +382,16 @@ function ____exports.RunGameplayTests()
runner:GetActiveTaskCount(),
0
)
local ownerActor = CreateBoundInstance({}, "AActor")
local world = _G.__UE_TEST_WORLD
local ownerActor = world ~= nil and world:SpawnActor(
UE.AActor.StaticClass(),
UE.FTransform(
UE.FRotator(0, 0, 0):ToQuat(),
UE.FVector(0, 0, 0),
UE.FVector(1, 1, 1)
),
UE.ESpawnActorCollisionHandlingMethod.AlwaysSpawn
) or CreateBoundInstance({}, "AActor")
local postDestroyExecuted = false
runner:Start(
function()