public void setScriptText ( String scriptText , String language ) { GVRScriptFile newScript = new GVRJavascriptScriptFile ( getGVRContext ( ) , scriptText ) ; mLanguage = GVRScriptManager . LANG_JAVASCRIPT ; setScriptFile ( newScript ) ; }
Loads the script from a text string .