How to Fade out a Toon Shaded Character?

Hi,
Sorry for the cross post with answers (hope this isn’t a faux pas - it seems traffic on the Unity Answers site has dropped off alot in the past month or two?).

Anyway, I have a null (empty) GameObject that is the parent of a Character with a skeleton and 2 meshes (one for body and one for wings) and alot of Toon shaded materials.

How can I use iTween (or something else) to simply fade out the entire character as one thing?

At the moment I’m trying:

iTween.FadeUpdate(myCharacter,iTween.Hash("alpha", 0.0f,"time", 2.0f,"includeChildren",true));

and it doesn’t work - I’ve also tried .FadeTo (it only happens on a particular input - that’s why it’s in the Update).

I read here that the material needs to be Transparent/Diffuse, but I need Toon shaded characters for my look. Surely there is a way to do this?

thanks :slight_smile:

I know you don’t need the slider, it was just for testing. Its not what you were looking for, but you may be able to use some parts of this script to keep it toon shader when not transparent. ofc change the diffuse part to your toon shader. I can’t find mine or i would of wrote it in ther for ya.

var hSliderValue : float;
//---------------------------------------------------------------------------------------------------------------------//
function Start() {
    hSliderValue = 1.0;
}
//---------------------------------------------------------------------------------------------------------------------//
function OnGUI() {
    hSliderValue = GUI.HorizontalSlider (Rect (25, 25, 100, 30), hSliderValue, 0.0,1.0);
    renderer.material.color.a = hSliderValue;
}
//---------------------------------------------------------------------------------------------------------------------//
function Update() {
    if(hSliderValue<1.0) {
      if(renderer.material.shader==Shader.Find( "Diffuse" )) {
      renderer.material.shader = Shader.Find( "Transparent/Diffuse" );
      }
	}
    else if(hSliderValue==1.0) {
      if(renderer.material.shader==Shader.Find( "Transparent/Diffuse" )) {
      renderer.material.shader = Shader.Find( "Diffuse" );
	}
  }
}
//---------------------------------------------------------------------------------------------------------------------//

:slight_smile: