Skip to content

Instantly share code, notes, and snippets.

View Z4urce's full-sized avatar
🎯
Focusing

Z4urce

🎯
Focusing
View GitHub Profile
@Z4urce
Z4urce / ScrollToSelectionBehaviour.cs
Last active May 9, 2021 18:23
Moves the Content transform so the current selected object will be inside the Viewport rect
// Source: https://gist.github.com/Z4urce/e1719b3c1641537ced54da24d911f0b0
// Moves the Content transform so the current selected object will be inside the Viewport rect
using UnityEngine;
using UnityEngine.EventSystems;
namespace Utils
{
public sealed class ScrollToSelectionBehaviour : MonoBehaviour
{
@Z4urce
Z4urce / auto_cookie_clicker.py
Created November 28, 2022 19:22
Cookie auto-clicker