Revision: 64839
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 25, 2013 06:33 by abrady0
Initial Code
// dispatch message. note 'GameObject' is euphemism for whatever game object will have the script attached to it. if (Button ("Get Invoking URL")) { Application.ExternalEval( "u.getUnity().SendMessage('GameObject', 'OnInvokingParamsResponse', window.location.href);" ); } // assuming this script is attached to 'GameObject' this function will be invoked public void OnInvokingParamsResponse(string res) { Debug.Log("invoking params res: "+res); }
Initial URL
Initial Description
quick example of how to get invoking URL in unity
Initial Title
getting invoking url and params
Initial Tags
Initial Language
C#