- Home /
Fading out alpha on a 3d object with iTween
I have a tree that is a 3d model. It has two shaders for the top of the tree and the trunk.
I am using ITween to fade the tree into view. However, only the top of the tree fades in.
This is my code:
Hashtable fadeFromParams = new Hashtable();
fadeFromParams.Add("time", 2.0f);
fadeFromParams.Add("alpha", 1);
fadeFromParams.Add("amount", 0);
fadeFromParams.Add("includechildren", true);
iTween.FadeFrom(tree, fadeFromParams);
For the tree, gameObject.childCount is showing 0.
Any idea how to fade in the entire model and not just the top of the tree?
Thanks, --Mike
if iTween is using PropertyBlocks internally, then you either need to split the tree, because those work on only one material at a time. Or you modify material properties manually, which is only recommendable when using just a few trees.
if that doesn't help, what is the tree parameter
Your answer
![](https://koobas.hobune.stream/wayback/20220612111820im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
iTween CameraFade not working in some cases (related to camera's cullingMask) 3 Answers
Material doesn't have property '_Color' 4 Answers
How to Fade out a Rocketbox avatar (using iTween)? 0 Answers
iTween FadeTo() problem 1 Answer
iTween FadeTo 1 Answer