Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
The typical problem here is that you've called `initPlugin`, and then instantly called `SendMessage`. The docs at: http://docs.unity3d.com/Documentation/Manual/UnityWebPlayerandbrowsercommunication.html recommend that you wait for the game to load before trying `SendMessage`. One way to handle this is to have your `InstagramManager` object call out to the HTML JS when it starts up, using `Application.ExternalCall()`. The function in the HTML JS that you call can then use `SendMessage` to talk back to the Unity script, and pass in the access token.

Viewing all articles
Browse latest Browse all 959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>