ScrollConflictManager edited online with Bitbucket
--HG-- branch : srinivassunil/scrollconflictmanager-created-online-wit-1456590432246pull/413/head
parent
654cd416cd
commit
dcf73019e9
|
@ -6,9 +6,12 @@ using System;
|
||||||
|
|
||||||
|
|
||||||
//this is the most efficient way to handle scroll conflicts when there are multiple scroll rects
|
//this is the most efficient way to handle scroll conflicts when there are multiple scroll rects
|
||||||
//this is useful when there is a vertical scrollrect in a horizontal scrollrect or vice versa
|
//this is useful when there is a vertical scrollrect in/on a horizontal scrollrect or vice versa
|
||||||
//gathered and modified from unity answers(delta snipper)
|
|
||||||
|
|
||||||
|
//attach the script to the rect scroll and assign other rectscroll in the inspecter (one is verticle and other is horizontal)
|
||||||
|
//gathered and modified from unity answers(delta snipper)
|
||||||
|
namespace UnityEngine.UI.Extensions
|
||||||
|
{
|
||||||
|
|
||||||
[RequireComponent(typeof(ScrollRect))]
|
[RequireComponent(typeof(ScrollRect))]
|
||||||
public class ScrollConflictManager : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
|
public class ScrollConflictManager : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
|
||||||
|
@ -82,3 +85,4 @@ public class ScrollConflictManager : MonoBehaviour, IBeginDragHandler, IEndDragH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue