Search Unity

Any way to do CanvasGroup.alpha but for color tint?

Discussion in 'UGUI & TextMesh Pro' started by andymakesthings, Apr 18, 2016.

  1. andymakesthings

    andymakesthings

    Joined:
    Sep 4, 2015
    Posts:
    18
    Is there any way to affect the colors of an object and all of its children similar to how canvas group affects the alpha?

    A use case would be to darken a group of objects when they are disabled. Tinted darker instead of just fading the alpha.
     
    LilGames, Seb-1814 and Schnepperling like this.
  2. Seb-1814

    Seb-1814

    Joined:
    Nov 23, 2013
    Posts:
    23
    That would be very useful indeed. I'm surprised it's not there actually. Is there any technical limitation that would prevent child canvas renderers color to be multiplied with color as well as alpha?
     
  3. LorenzoNuvoletta

    LorenzoNuvoletta

    Joined:
    Apr 28, 2014
    Posts:
    54
    Is the source code for CanvasGroup available anywhere?
     
  4. Seb-1814

    Seb-1814

    Joined:
    Nov 23, 2013
    Posts:
    23
    Last time I checked it was just calling the c++ side of unity