Hello Guest

Author Topic: I want to ask questions about the back and fornt pictures position [SOLVED]  (Read 7333 times)

naktim

  • Newbie
  • *
  • Posts: 18
    • View Profile
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
« Last Edit: June 06, 2013, 01:28:30 am by naktim »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #1 on: June 04, 2013, 07:34:53 pm »
Are you using a perspective camera?

naktim

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #2 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #3 on: June 04, 2013, 08:10:46 pm »
Yes. Set camera.transparencySortMode to orthographic on the camera.

naktim

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #4 on: June 05, 2013, 04:49:20 am »
Sorry  I can't Find  transparencySortMode
did I find  wrong  place?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #5 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

naktim

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #6 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 () {
   
   }
}

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #7 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 () {
   
   }
}

naktim

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #8 on: June 05, 2013, 05:51:23 pm »
ok! sorry ~

can u wrote a little sample for me?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: I want to ask questions about the back and fornt pictures position
« Reply #9 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.