Search Unity

multi-display on android

Discussion in 'Editor & General Support' started by kuailaiwanli, Jun 26, 2017.

  1. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    With a special machine(two displays) running android 4.4.4,I use Unity's "Display" API to test.

    Display 1 shows 3D by camera1
    Display 2 shows UI by camera2

    In windows,it works perfect.
    I just type: "Display.display[1].activate();" at Start.
    But in android,two Screen show the same picture(camera1). But I print a Log,unity can read 2 displays total.

    Next,I Add another code "camera2.SetTargetBuffers(Display.displays[1].colorBuffer,Display.displays[1].depthBuffer);"

    the Display2 get a screen mess,dazzling monitor.

    My question:----------------------------------
    Is "SetTargetBuffers" necessary on multi-display?
    How to solve the display2 problem on android?
    Anyone help?