コード例 #1
0
 float GetPixelPerfectDepth()
 {
     if (pixelPerfectCamera != null && !pixelPerfectCamera.normalCamera.orthographic)
     {
         return(pixelPerfectCamera.GetParallaxLayerDepth(parallaxLayer));
     }
     else
     {
         return(transform.position.z);
     }
 }