AlexanderOcias / UnityPixelArtCamera

Easy pixel art camera rendering in Unity
120 stars 12 forks source link

you are refreshing the canvas every screen change #1

Closed alffanclub closed 7 years ago

alffanclub commented 7 years ago

Nice approach to this problem. I like the way you solved it, but I did notice one minor issue. Currently in SetupRenderTexture in "UnityPixelArtCamera/Assets/Ocias/PixelArtCamera/PixelArtCamera.cs", instead of setting the camera if it is null, you overwrite the camera only if it is not null. I'm mostly sure you want the opposite. if (mainCanvas != null) to actually be if (mainCanvas == null)

AlexanderOcias commented 7 years ago

Whoops! Fixed, thank you!