Search Unity

Drawing 3D Model behind Sprites

Discussion in '2D' started by Galahad, Apr 25, 2016.

  1. Galahad

    Galahad

    Joined:
    Feb 13, 2012
    Posts:
    72
    Good evening,

    Anyone managed to draw 3d Models behind a 2D Sprite?

    The models in question are from this Asset:

    ALL 2.5D 84 type character pack

    I've tried messing up with Renderer sortingLayerID, but didn't work.
    I've, also, tried to contact the asset author but didn't get an answer.

    Regards
    Thiago
     
  2. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    230
  3. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    4,030
    For me, I simply use 2 cameras. I have a foreground orthographic camera for the sprites and a background perspective camera for the 3D objects. Or both can be orthographic. Then you just set which layers each camera renders and the depth order you want to render them at. If you create a layer tag for 3D objects then you assign your background camera to only render those and you make sure that the foreground camera excludes rendering that layer.
     
    theANMATOR2b and Galahad like this.