Overlay Unity on top of UIKit

Is there anyway to get the Unity background to be transparent so that UIKit controls can be placed behind the Unity EAGLView?

Well you can put it behind it but the 3D context will never become transparent as such it would be useless.

and without modification to the xcode project, not even getting it behind it is possible as the eagl view isn’t a view and thus does not interact with the CALayers in any way (-> depth ordering)

What I am looking for is not to make the 3D content transparent. I want to make the background color transparent. It is by default blue. I want to make it transparent. Something like glClear with a background color of glClearColor.

The EAGLView is most certainly a standard view (UIView subclass) that just happens to be backed by an CAEAGLLayer so moving that around in the hierarchy is no problem.

That was clear that you want the context to be transparent.
But you have no control nor access to it and as such it will never become transparent (unsure if OpenGL ES even supports that)

glclear wouldn’t help independent of which incarnation without the whole context being created correctly.
its like trying to draw into stencil buffer if you didn’t specify it to offer stencil at all, which will not work either

Hi. I am trying to do the same using subview to the keywindow, controller containment, setting opaque to NO, setting Unity to not clear the view, or to clear it in solid color black with alpha 0, nothing seems to make this Unity surface black pixel show through. Did you ever find an answer to this problem? Anyone at Unity know if this can be achieved at all?