public override void render()
{
_alphaInTree = _alpha * parent.alphaInTree;
if(!_visible && _alphaInTree<=0){
return;
}
if(_texture){
_textureRenderRect.x = _transformInTree.tx;
_textureRenderRect.y = _transformInTree.ty;
_textureRenderRect.width = _textureSelfRect.width * _transformInTreeScale.x;
_textureRenderRect.height = _textureSelfRect.height * _transformInTreeScale.y;
GUI.color = new Color( 1, 1, 1, _alphaInTree );
_texturRenderRotatePivot.x = _transformInTree.tx;
_texturRenderRotatePivot.y = _transformInTree.ty;
GUIUtility.RotateAroundPivot (_transformInTreeRotation, _texturRenderRotatePivot);
//Debug.Log(id+" : "+_boundRectInTree);
GUI.DrawTexture(_textureRenderRect,_texture);
GUIUtility.RotateAroundPivot (-_transformInTreeRotation, _texturRenderRotatePivot);
//GUI.DrawTexture(_boundRectInTree,Resources.Load("frame",typeof(Texture2D)) as Texture2D);
}
renderChildren();
}