Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Cabal on August 09, 2016, 09:40:17 AM

Title: UIScrollView constrainOnDrag not exposed in inspector
Post by: Cabal on August 09, 2016, 09:40:17 AM
The public variable constrainOnDrag in the UIScrollView class is not exposed in the inspector, unlike restrictWithinPanel or disableDragIfFits.

It's a public variable and it seems like it should be available in the inspector as it controls the behavior of the scrollview just like the other public variables related to dragging. I added the following line to UIScrollViewEditor.cs (line 44).
NGUIEditorTools.DrawProperty("Constrain On Drag", serializedObject, "constrainOnDrag");
Title: Re: UIScrollView constrainOnDrag not exposed in inspector
Post by: ArenMook on August 10, 2016, 11:19:42 AM
Makes sense to me, thanks.