Skip to content

Commit 5c58d14

Browse files
kennytannEvergreen
authored andcommitted
[UUM-31719] Set default orthographic for pixel perfect camera
Set default projection orthographic for pixel perfect camera
1 parent dc3be16 commit 5c58d14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Packages/com.unity.render-pipelines.universal/Editor/2D/GameObjectCreation.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ static void GameObjectCreatePixelPerfectCamera(MenuCommand menuCommand)
1515
{
1616
var go = CreateGameObject("Pixel Perfect Camera", menuCommand, new[] { typeof(PixelPerfectCamera) });
1717
go.GetComponent<PixelPerfectCamera>().gridSnapping = PixelPerfectCamera.GridSnapping.PixelSnapping;
18+
go.GetComponent<Camera>().orthographic = true;
1819
}
1920

2021
static public GameObject CreateGameObject(string name, MenuCommand menuCommand, params Type[] components)

0 commit comments

Comments
 (0)