- Home /
TransparencySortMode
Hello everyone,
Piggybacking on this question: http://answers.unity3d.com/questions/143045/transparent-objets-sorting.html
I'm trying to implement the new transparencySortMode that's part of Unity 3.5.3. Is it not just:
var cam: Camera;
function Start () { cam.transparencySortMode.orthographic; }
Because that just brings up the "Expressions in statements must only be executed for their side-effects" error. Apologies in advance if it's an obvious question; the Unity Reference is a little lean about it and I can't really find much documentation elsewhere.
Thanks!
Ess
Answer by Jessy · Jun 29, 2012 at 10:18 PM
cam.transparencySortMode = TransparencySortMode.Orthographic;
Your answer
Follow this Question
Related Questions
Orthographic Camera Size? 3 Answers
Dynamic shadows in orthographic camera. 2 Answers
Ortho camera zoom to mouse point 4 Answers
Orthographic camera scale Problems? 0 Answers
How to make WorldToScreenPoint work with an orthographic camera? 0 Answers