Forum Discussion
Using Unity in Storyline 360
Sorry for the delay.
So, this is how you should do it:
1. Insert web object (Unity folder)
2. When Unity finishes what it is supposed to do, you need to execute such javascript code (you'll find in internet how to do it):
player = parent.GetPlayer();
player.SetVar("unity_finished", true);
3. In the storyline, when the timeline of the first slide starts, you need to set a boolean (True/False) variable called unity_finished to false.
4. In the storyline on the Unity (web object) slide, you need to add a trigger on variable change, with the variable being unity_finished. Optionally within the trigger, you may check if the value is true.
That's it.
Hello, found this very related to my problem. So I have embedded my webGL link as web object in Storyline and I am trying to use GetPlayer() but getting security error
SecurityError: Failed to read a named property 'GetPlayer' from 'Window': Blocked a frame with origin "https://my-app.net" from accessing a cross-origin frame.
Does anyone know a way around this?
My app is deployed with CORS enabled.
Related Content
- 7 months ago
- 9 months ago
- 9 months ago
- 9 months ago