Skip to content

Commit 1a8baf4

Browse files
committed
progress test
1 parent dcde8cc commit 1a8baf4

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎Content/Scripts/debugtest.py‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,20 @@ def test2():
5252

5353
#Test with callback
5454
def test3():
55-
ut.run_on_bt(yolo, yolodone)
55+
ut.run_on_bt(yolo, yolodone)
56+
57+
58+
#progress callback example functions
59+
def progresscallback(progress):
60+
ue.log('at ' + str(progress))
61+
62+
def doLongTask():
63+
ue.log('started my task')
64+
65+
for x in range(1,10):
66+
time.sleep(0.5)
67+
ue.run_on_gt(progresscallback, x)
68+
69+
#test basic progress bar
70+
def testp():
71+
ut.run_on_bt(doLongTask)

0 commit comments

Comments
 (0)