Skip to content

Instantly share code, notes, and snippets.

View Lioncat2002's full-sized avatar
😺
Hallo Kitty cats!

Kittycat Lioncat2002

😺
Hallo Kitty cats!
View GitHub Profile
@Lioncat2002
Lioncat2002 / SpriteStacking.cs
Last active December 12, 2023 15:56
SpriteStacking in Unity
using UnityEngine;
public class SpriteStacking : MonoBehaviour
{
public Sprite[] spriteFrames;
public float layerSpacing = 0.01f;
public float offset = 0.01f; // Add an offset between sprite layers
public float parallaxSpeed = 5f;
void Start()