Can't get parentHWND to work

So, I downloaded the EmbeddedWindow.zip linked in -parentHWND option on the command line info page:

I followed the ReadMe exactly:

  • Open Unity project
  • Build Windows Standalone application to Export directory, and name the executable as Child.exe
  • Run Container.exe in Export directory
  • You should see Windows Standalone application running inside Container application

I also just downloaded Unity 4.6.0f3.

But it doesn’t work. When I run Container.exe, it pops up the start page, where I choose Windowed and 640x480 resolution, but when I click the Play! button, it just opens in its own Window, not inside the Container.exe app (which is running).

Is this even working? Information on it seems scarce on the forums here and on the web. Has anyone successfully used this?

It also seems weird that the example appends the Container.exe file location to the arguments. But no amount of playing around with the arguments (I tried making the handle hex, adding 0x in front, etc) made it work.

I finally figured it out. This feature is not available in 4.6.0. It is only available in 4.5.5p1. I installed 4.5.5p1, and the Unity player correctly shows up on the form of the other application.

The bummer is that going back to 4.5.5p1 seems to have wiped out my entire other project I was trying to use this on.