Forum rules - please read before posting.

Sprite fader should take initial render alpha into account

Hi,

the Sprite fader should take the initial alpha of the spriterenderers color into account, so I can fade in and out a semi transparent sprite.

Best.
Alex

Comments

  • When the fade process begins, it should begin from the alpha value that it currently has, but the effect will currently always result in a completely invisible or fully visible sprite.

    I expect having it try to guess what the final alpha value should be would cause unintended values at times - though it may be possible to introduce min/max values to the component.

  • edited June 2022

    But it would not need to guess if the initial alpha value is sampled on Awake.. thats how I fixed it.
    I agree that it should end on alpha 0f when fadedOut but when fadeIn it should end on initial alpha.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.