30 lines
693 B
Lua
30 lines
693 B
Lua
|
---@class WB_CameraCap_C:UUserWidget
|
||
|
---@field Image_0 UImage
|
||
|
--Edit Below--
|
||
|
local WB_CameraCap = { bInitDoOnce = false; };
|
||
|
---@type BP_ItemCapture_C
|
||
|
WB_CameraCap.ItemCaptureActor = nil;
|
||
|
|
||
|
function WB_CameraCap:Construct()
|
||
|
-- 查找
|
||
|
UGCEventSystem.AddListener(EventTypes.ClientAlready, self.OnClientAlready, self)
|
||
|
end
|
||
|
|
||
|
function WB_CameraCap:OnClientAlready()
|
||
|
-- 加载
|
||
|
UE.FindActorsByClass()
|
||
|
self.ItemCaptureActor = UE.SpawnActor(ObjectPath.BP_ItemCapture)
|
||
|
if UE.IsValid(self.ItemCaptureActor) then
|
||
|
self.ItemCaptureActor:CaptureSceneByMeshPath();
|
||
|
end
|
||
|
end
|
||
|
|
||
|
-- function WB_CameraCap:Tick(MyGeometry, InDeltaTime)
|
||
|
|
||
|
-- end
|
||
|
|
||
|
-- function WB_CameraCap:Destruct()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
return WB_CameraCap;
|