- Home /
How to Enable/Disable My Drag and Drop Component in ScrollRect's item GameObjects When longClicked = true/false respectively ?
So I want to Simulate the android home Screen functionality in my Game: 1) when you press an item and drag, You can go to the next page. 2) when you Long Press an item and drag it, you can place it in a New Position, and the positions of all item will be saved What I can do so far is the first one and drag and drop an item and save the new positions of all items when long Press but Since you can't Scroll an Item(GameObject) inside ScrollRect If any component of the item(GameObject) implements IBeginDragHandler, IDragHandler, IEndDragHandler.So To Scroll the items when normal press and drag, I had to disable the DragANdDrop Components after any drop operation. But When I am Enabling the DragAndDrop Component if LongPress = true. It's enabled but only working when I stop pressing it and press it item again. But I want it to start working as soon as LongPress is true
Your answer
Follow this Question
Related Questions
NGUI Buttons in ScrollView. 0 Answers
4.6 Beta uGUI: Putting UI elements in a ScrollRect via code 1 Answer
How to transition a click-and-drag from a UI button to a GameObject 0 Answers
Draggable in Scroll View Returning to proper place on Drop 0 Answers
Adding a button to the content of the viewport in a scroll view through code? 0 Answers