2D Toolkit Forum
2D Toolkit => Support => Topic started by: naktim on June 04, 2013, 07:24:36 pm
-
I want to ask
My Pictures before and after the sequence
In front of the camera does not appear in the order in accordance with the normal this is why
How should I fix him
like my pic's wheel
-----------------------------------------------------------
Thanks For that answer
I fixed that problem
-
Are you using a perspective camera?
-
yes I am use perspective camera?
can i fix this question?
because i really need to use perspective camera
-
Yes. Set camera.transparencySortMode to orthographic on the camera.
-
Sorry I can't Find transparencySortMode
did I find wrong place?
-
Its not available in the inspector - you have to write a script to do it.
http://docs.unity3d.com/Documentation/ScriptReference/Camera-transparencySortMode.html
-
I write this correct?
Because I usually are used playmaker so I could not write script
What do you look ~
______________________________________________________
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
var transparencySortMode :Orthographic
}
// Update is called once per frame
void Update () {
}
}
-
No.
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
Camera.main.transparencySortMode = TransparencySortMode.Orthographic;
}
// Update is called once per frame
void Update () {
}
}
-
ok! sorry ~
can u wrote a little sample for me?
-
I just did in the previous post.
Copy and paste that into your script, then attach it to a scene object.