Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Button/Selectable transition: simultaneous sprite swap and color tint

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

  1. Dark_Swordsman

    Dark_Swordsman

    Joined:
    Dec 4, 2018
    Posts:
    32
    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: Aug 22, 2019
unityunity