Should this work on iphone? Not sure if this is a bug, because I just started learning about multiple cameras.
Add a second camera and in the editor set it’s normalized viewport rect: 0,0,1,0.5
In the game view you see just a stretched version of the camera. In Unity Indie (non-iphone), when I do the same, I see a horizontal split screen, as expected.
nOmad, its not rendering to a render texture is it? No render textures on iphone.
Or is it using a normalised viewport rect for positioning? I have seen weird stuff with that too… things are in correct position in editor, but not when displayed on iphone. I think Renaldas Team are aware of it, BUT…
Send in a bug report with the project attached and I am sure the guys/gals at UT will get it fixed if it is truly a bug.
Ok the bug may seem to be around the layer : I’ve put my 3D animated objects into the HUD layer, they are correctly rendered in Unity Editor, but not on iPhone.
Tryin the camera approach now …
edit : Tried the Depth at 10, no orthographic, still displaying in Editor but not on iPhone.
I think it’s confirmed that this problem comes from layers.
I had this problem too in my game iCrossbow (now in the app store).
I have a small picture-in-picture view at the top-left of the game screen using a second camera with viewport rect set appropriately.
In editor it displays on RIGHT-top corner, but in game it displays on LEFT-top corner. I just had to get used to it and pretend it was in the proper place while in the editor.