Hello Guest

Author Topic: Removing the orthographic lock on tk2d camera?  (Read 4040 times)

ryanray

  • Newbie
  • *
  • Posts: 2
    • View Profile
Removing the orthographic lock on tk2d camera?
« on: May 03, 2013, 04:26:30 am »
Hello,

Just a quick question:
Is it safe to remove the orthographic lock from the tk2d Camera, or would it create a problem with some of the other options? I really enjoy how optimized the camera, and would like to use some of it's functions with my project. I require a perspective camera for the 3D objects that make up the scene, but the player/npcs are all 2D sprites.

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Removing the orthographic lock on tk2d camera?
« Reply #1 on: May 03, 2013, 09:13:57 am »
Just set the camera to perspective - for obvious reasons, the tk2dCamera isn't compatible with perspective cameras, but you're free to use a perspective camera if that suits you better. Just remember to set this
http://docs.unity3d.com/Documentation/ScriptReference/Camera-transparencySortMode.html
to Orthographic

so your sprites sort properly.