code: public void selectByName(String childName)
      {
          int i = 0;
          GVRSceneObject owner = getOwnerObject();
          if (owner == null)
          {
              return;
          }
          for (GVRSceneObject child : owner.children())
          {
              if (child.getName().equals(childName))
              {
                  mSwitchIndex = i;
                  return;
              }
              ++i;
          }        
      }
docs: Sets the current switch index based on object name.
  This function finds the child of the scene object
  this component is attached to and sets the switch
  index to reference it so this is the object that
  will be displayed.
  
  If it is out of range, none of the children will be shown.
  @param childName name of child to select
  @see GVRSceneObject#getChildByIndex(int)