public void load ( IAssetEvents handler ) { GVRAssetLoader loader = getGVRContext ( ) . getAssetLoader ( ) ; if ( mReplaceScene ) { loader . loadScene ( getOwnerObject ( ) , mVolume , mImportSettings , getGVRContext ( ) . getMainScene ( ) , handler ) ; } else { loader . loadModel ( mVolume , getOwnerObject ( ) , mImportSettings , true , handler ) ; } }
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 main scene of the current context will contain only the owner of this component upon return . Otherwise the loaded asset is a child of this component s owner .