Forum Discussion
JayaHari
3 years agoCommunity Member
Using Unity in Storyline 360
Hey guys,
I'm working on a project which requires to use Unity game in the storyline 360 file. I have added the Unity file as webGL component. In the review link and in the SCORM version, on c...
TomasBlazauskas
3 years agoCommunity Member
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.
nadavdahan
2 years agoCommunity Member
Hello,
I tried to follow those steps but I seem to do something wrong so I would like so clarifications:
- In part 2, what do you mean by "what it is supposed to do" (just loading the project to the web object)?
- In part 2, where do I need to execute the javascript (inside a trigger,as a part of unity)?
Related Content
- 7 months ago
- 9 months ago
- 9 months ago
- 9 months ago