Author Topic: UIScrollView constrainOnDrag not exposed in inspector  (Read 6323 times)

Cabal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 16
    • View Profile
UIScrollView constrainOnDrag not exposed in inspector
« 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");

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView constrainOnDrag not exposed in inspector
« Reply #1 on: August 10, 2016, 11:19:42 AM »
Makes sense to me, thanks.