Hello.
I want to reflesh UI without Observable.
I’m looking for code to refresh all the UI on the screen.
It is my situation.
-
Observable is not used.
-
Normally the UI should not be refreshed even if the value of the variable changes.
-
But I want to refresh all the UIs on the screen when I want to.
How can I do this?
no problem even if the cost is large.
Ex)
var testvalue = "hello";
function ChangeValue() {
testvalue = "world";
}
function RefleshUI() {
ScreenUI.Reflesh(); <- This is a temporary code that does not exist.
}
<Text>{testvalue}</Test>
<Panel Clicked="{ChangeValue}" />
<Panel Clicked="{RefleshUI}" />
I want this.
Press the first panel to change the value but does not change the UI.
Press the second panel to refresh the UI to see the changed values.