But if the texture's data is in plist file, it will return NULL since it didn't find the texture file.
And it will go to 
<pre>
if (tex)
                {
                    setTexture(tex);
                }
                else
{// go to here to addUIImage
</pre>
Right?