Skip to content

Instantly share code, notes, and snippets.

View markeahogan's full-sized avatar

Mark E A Hogan markeahogan

View GitHub Profile
@Josef212
Josef212 / NesteScrollRect.cs
Last active April 29, 2025 11:24
A nested ScrollRect for unity
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class NestedScrollRect : ScrollRect
{
public override void OnInitializePotentialDrag(PointerEventData eventData)
{
for(int i = 0; i < m_parentInitializePotentialDragHandlers.Length; ++i)
{