From 12f3ac102d3aea08af540dd7f2cf0e08e939a70d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Oct 2021 00:18:22 +0800 Subject: +loadimageasync test --- Data/Scripts/EditorApplication.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Data/Scripts/EditorApplication.lua') diff --git a/Data/Scripts/EditorApplication.lua b/Data/Scripts/EditorApplication.lua index 852069d..6b42175 100644 --- a/Data/Scripts/EditorApplication.lua +++ b/Data/Scripts/EditorApplication.lua @@ -70,12 +70,11 @@ Debug.Log(tostring(imgData:GetHeight())) local tex = Rendering.Texture.New(imgData, false) -local requets = Rendering.LoadImageDataAsync("./Resources/Images/brickwall.jpg") +local requets = Resource.LoadImageDataAsync("./Resources/Images/brickwall.jpg") while true do - if requets.isDone then - Debug.Log("read image done!!!") - end + app:OnStep() app:PullMessage() + end -- cgit v1.1-26-g67d0