-/**
- * Find the first image actor in the actor hierarchy
- */
-ImageActor FindImageActor( Actor root )
-{
- ImageActor imageActor = ImageActor::DownCast( root );
- if( !imageActor && root )
- {
- for( unsigned int i = 0, numChildren = root.GetChildCount(); i < numChildren; ++i )
- {
- ImageActor childImageActor = FindImageActor( root.GetChildAt( i ) );
- if( childImageActor )
- {
- return childImageActor;
- }
- }
- }