diff options
author | chai <chaifix@163.com> | 2021-10-27 00:18:22 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-27 00:18:22 +0800 |
commit | 12f3ac102d3aea08af540dd7f2cf0e08e939a70d (patch) | |
tree | df3a909a9f0e749e4ede483b760ba50450d9df81 /Data/Scripts | |
parent | 208e23de77ad6d104f13a0bb591ae16c4a805fe9 (diff) |
+loadimageasync test
Diffstat (limited to 'Data/Scripts')
-rw-r--r-- | Data/Scripts/EditorApplication.lua | 7 |
1 files changed, 3 insertions, 4 deletions
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 |