2D Toolkit Forum

2D Toolkit => Support => Topic started by: naktim on June 04, 2013, 07:24:36 pm

Title: I want to ask questions about the back and fornt pictures position [SOLVED]
Post 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
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: unikronsoftware on June 04, 2013, 07:34:53 pm
Are you using a perspective camera?
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: naktim on June 04, 2013, 07:49:57 pm
yes I am use perspective camera?

can i fix this question? 

because i really need to use perspective camera
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: unikronsoftware on June 04, 2013, 08:10:46 pm
Yes. Set camera.transparencySortMode to orthographic on the camera.
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: naktim on June 05, 2013, 04:49:20 am
Sorry  I can't Find  transparencySortMode
did I find  wrong  place?

Title: Re: I want to ask questions about the back and fornt pictures position
Post by: unikronsoftware on June 05, 2013, 09:51:27 am
Its not available in the inspector - you have to write a script to do it.
http://docs.unity3d.com/Documentation/ScriptReference/Camera-transparencySortMode.html
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: naktim on June 05, 2013, 03:23:57 pm
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 () {
   
   }
}
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: unikronsoftware on June 05, 2013, 03:55:24 pm
No.


Code: [Select]
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 () {
   
   }
}
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: naktim on June 05, 2013, 05:51:23 pm
ok! sorry ~

can u wrote a little sample for me?
Title: Re: I want to ask questions about the back and fornt pictures position
Post by: unikronsoftware on June 05, 2013, 06:03:28 pm
I just did in the previous post.
Copy and paste that into your script, then attach it to a scene object.