Skip to content

Instantly share code, notes, and snippets.

View vanhaodev's full-sized avatar

vanhaodev vanhaodev

  • Cong ty that nghiep
  • Nha tren may, huyen tren cay
  • Facebook babymonster2001
View GitHub Profile
@benloong
benloong / NesteScrollRect.cs
Created December 28, 2022 08:00 — forked from Josef212/NesteScrollRect.cs
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)
{