Closed Baccanno closed 1 year ago
Found this, getting closer
case AnimationType.FillAmount:
isRelative = false;
switch (targetType)
{
case TargetType.Image:
tween = ((Image)target).DOFillAmount(endValueFloat, duration);
break;
}
break;
case AnimationType.Fade:
isRelative = false;
switch (targetType) {
All values seems set correctly, when previewing though it does not seem to update the fill amount value, however the tween runs for 1 sec. As not a GO target, the target is set to the one enclosing the component. Has it any infuence ?
Okay it does work perfectly. Just had to check "Always update" in the editor
So here is the POC I'll let you merge it :) ?
Ahoy!
I dug deeper into the editor preview system and found a hack that allows UI FillAmount/Color/Fade editor previews to work even if you don't enable "always update" in the editor :) If you write me here I will send you a full update
Hi, The DOFillAmount func is missing from the list of tweens in the component UI. I tried adding it myself, by looking at the Fade code, because values behaves the same, though I can't see were you bind the enum with the function.