Skip to main content
jaredt95317617
New Participant
March 17, 2017
Answered

Captivate run an embedded unity game

  • March 17, 2017
  • 2 replies
  • 5017 views

Does anyone know if there is a way to have a running unity build working in captivate. Basically we want to have it when someone goes to its slide, the game is already running in the slide. I know I can export unity to an webgl and have captivate open a webpage with unity running but we are wanting it to run in captivate itself. Any ideas or help would be greatly appreciated.

This topic has been closed for replies.
Correct answer sdwarwick

So,  Captivate has the ability to embed an IFRAME into the middle of a page - it is really simple.    There is a Icon called "Object" on the toolbar, with the last element being "Web" 

You have the choice of pulling up a web page by the URL or you can specify all the iframe parameters by using the "embed code" option.    The Embed code option is pretty interesting - you can put any HTML code you want in there..  

a typical HTML iframe spec looks like: <iframe width="854" height="800" src="//www.youtube.com/embed/o_znYZ7Ry-0" frameborder="0" allowfullscreen></iframe>

2 replies

sdwarwickCorrect answer
Participating Frequently
March 18, 2017

So,  Captivate has the ability to embed an IFRAME into the middle of a page - it is really simple.    There is a Icon called "Object" on the toolbar, with the last element being "Web" 

You have the choice of pulling up a web page by the URL or you can specify all the iframe parameters by using the "embed code" option.    The Embed code option is pretty interesting - you can put any HTML code you want in there..  

a typical HTML iframe spec looks like: <iframe width="854" height="800" src="//www.youtube.com/embed/o_znYZ7Ry-0" frameborder="0" allowfullscreen></iframe>

jaredt95317617
New Participant
March 20, 2017

That may be an option and is definitely one worth exploring especially if it opens it within the captivate slide itself.  Thank you for the information.  I am going to give it a go and let you know how it goes.

Participating Frequently
June 7, 2017

Hello,

I would like to continue with exploring possibilities to use the unity games as learning objects.

My question is:

After we embed the unity game inside captivate, is there any possibility to combine the game score with the SCORM output data? Other words, can Captivate use the output data from the unity game to set the user status of the entire SCORM object?

Thanks.


assuming that the embedded unity game is being served by the same web server so that the iframe meets the security requirements,  it is possible to pass javascript variables up from the iframe to the parent frame.  if you have the ability to create custom javascript from within the unity game frame,  you can simply set a result variable in the parent iframe.  captivate can read this variable and use it.   pushing it into a "total" score that is reported through SCORM through captivate can be done either by creating a invisible quiz object that you set the value of and then activate,  or report directly in SCORM.   I've done the former, I've seen posts on the latter.  

Paul Wilson CTDP
Community Expert
March 18, 2017

You should try to reach out to EJ Leblanc (https://twitter.com/ejleblanc). My guess is that if there is one person who can address your question, it would be EJ.

Paul Wilson, CTDP
jaredt95317617
New Participant
March 20, 2017

Thank you, I think I will reach out to him.