public boolean invokeFunction ( String funcName , Object [ ] args ) { mLastError = null ; if ( mScriptFile != null ) { if ( mScriptFile . invokeFunction ( funcName , args ) ) { return true ; } } mLastError = mScriptFile . getLastError ( ) ; if ( ( mLastError != null ) && ! mLastError . contains ( "is not defined" ) ) { getGVRContext ( ) . logError ( mLastError , this ) ; } return false ; }
Calls a function script associated with this component . The function is called even if the component is not enabled and not attached to a scene object .