public boolean load ( GVRScene scene ) { GVRAssetLoader loader = getGVRContext ( ) . getAssetLoader ( ) ; if ( scene == null ) { scene = getGVRContext ( ) . getMainScene ( ) ; } if ( mReplaceScene ) { loader . loadScene ( getOwnerObject ( ) , mVolume , mImportSettings , scene , null ) ; } else { loader . loadModel ( getOwnerObject ( ) , mVolume , mImportSettings , scene ) ; } return true ; }
Loads the asset referenced by the file name under the owner of this component . If this component was constructed to replace the scene with the asset the scene will contain only the owner of this component upon return . Otherwise the loaded asset is a child of this component s owner .