Search Unity

Button/Selectable transition: simultaneous sprite swap and color tint

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Aug 22, 2019.

  1. Deleted User

    Deleted User

    Guest

    Hi, when setting the properties "colors", "spriteState" and "transition" from code (transition to sprite swap) it is possible to use both simultaneously. However, sometimes the color will revert back to default.

    I assume both working together sometimes is a bug? I would actually prefer to be able to set both at the same time - I have different button state sprites in white that I would like to colorize.

    Edit: I noticed there is a difference depending on wheter you change the transition before or after setting the color block
     
    Last edited by a moderator: Aug 22, 2019