Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Zalán Kórósi Z4urce

🎯
Focusing
View GitHub Profile
@Z4urce
Z4urce / ScrollToSelectionBehaviour.cs
Last active Sep 4, 2020
Moves the Content transform so the current selected object will be inside the Viewport rect
View ScrollToSelectionBehaviour.cs
// 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
{
You can’t perform that action at this time.