Skip to content

Commit 654796e

Browse files
committed
Exposed PerpectiveZ in PixelCamera.
1 parent 514ee55 commit 654796e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

PixelCamera.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ public float PixelsPerUnit
9696
set { pixelsPerUnit = value; }
9797
}
9898

99+
public float PerspectiveZ
100+
{
101+
get
102+
{
103+
if (advancedSettings == null)
104+
return cam.farClipPlane*0.5f;
105+
return advancedSettings.perspectiveZ;
106+
}
107+
set
108+
{
109+
if (advancedSettings == null)
110+
return;
111+
advancedSettings.perspectiveZ = value;
112+
}
113+
}
114+
99115
public Vector2 AspectStretch
100116
{
101117
get

0 commit comments

Comments
 (0)