Skip to content

Instantly share code, notes, and snippets.

View TylerCode's full-sized avatar
:octocat:
Probably making something, I have too many repos...

Tyler C TylerCode

:octocat:
Probably making something, I have too many repos...
View GitHub Profile
@TylerCode
TylerCode / Unity_LOWREZJAM.md
Last active August 5, 2024 17:17
Pixel Perfect, Low Resolution, WITH Post Processing. Unity 2021.3, 2022.3, and 2023.1

Intro

It's that time of year again. Time for the #LOWREZJAM!!!

Almost every year so far, I've maintained a guide to getting 64x64 resolution working as natively as possible so this year is of course, no exception. This is not for absolute beginners but if you've done some tutorials for unity then you should be fine here.

This guide goes beyond just using the default pixel perfect camera and the goal is to have Post Processing, UI, and the normal artwork ALL being forced into the 64x64 resolution. This is janky, but it DOES accomplish those goals. Every time I've tried to do it in a more clean fashion, I end up with UI that is affected by post processing, or UI that isn't interactable, or some edge case in the Pixel Perfect Camera component.

Last thing, if you don't care about post processing, this is actually much, MUCH easier, you can scroll to the end for that guide and **if you're making a 2d game with no post processing/lighting, I recommend that instead!

@TylerCode
TylerCode / LocalGravity.cs
Last active April 14, 2018 13:34
local gravity
using UnityEngine;
public class LocalGravity : MonoBehaviour
{
public Transform m_GravityCenter;
private Rigidbody m_RigidBody;
void Start()
{