Changing Value of UIBlock from other script while Edit Mode #394
Closed
Chang-han
started this conversation in
Feature Requests
Replies: 1 comment
-
Never mind, I've fount EditorUtility.SetDirty() make all fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've mentioned this in Discord forum, so I post some requests here.
Now I'm making own tween system(Animation) of novaui, to use more conveniently with MonoBehaviour.
I've made some Tweens like Position/Rotation/Scale/Color, there is one problem with that.
Since this is Tween(animation) Component, I want to preview these while not play mode(which means on Edit Mode).
I've looked into the plugin, so I can preview of Position/Rotation and Scale animation(by calling UIBlock.CalculateLayout() method on each frame).
But when I chanaged none-transform related ones, it does not work properly.
For example, changing Color , Alpha and Size of UIBlock.
I can confirm it is working as expected(color value of inspector changes properly), but I cannot see it on Game View or Scene View.
Since I'm new to this plugin, I couldn't find any method that forces to apply its visual properties to Game/Scene view.
I cannot understand that changing its property on inspector works immediately, but not with script.
So, I am wondering there is such method like CalculateLayout(), that updates immediately on Edit Mode.
If not, I think it'll be much better to have method like 'UpdateVisual()' method.
Beta Was this translation helpful? Give feedback.
All reactions