Questions tagged [scrollrect]

42 questions
1
vote
1 answer

Objects Hidden Using ScrollRect Blocking/Triggering Input Events

The project is written in as3, packaged using AIR 28.0, and run on an Android 7 device (when run on a windows desktop environment it works fine). Objects that are hidden from view by a scrollRect are still receiving mouse events on my Android 7…
Gadsoc
  • 11
  • 4
1
vote
1 answer

Change scrollview position from code while scrolling

I have a problem with Unity's ScrollRect. I want to make a infinite scrollview with object pooling. While user scrolling a scrollview, I delete unseen objects from list. And I'm using vertical layout system on my 'content' object with upper-center…
Cenkisabi
  • 1,066
  • 8
  • 25
1
vote
1 answer

UIScrollView - scrollRectToVisible - showing a button at the center of the screen?

I have a uiscrollview with tons of buttons in it. What I need to do is show one of these buttons at the center of the screen. When I use scrollRectToVisible (passing the button-frame), the scrollview indeed shows the button - but sometimes at the…
Urs
  • 11
  • 2
1
vote
3 answers

Multiple viewports of the same DisplayObject

Is it possible to have multiple view of the same display object? (e.g. same-computer multi-player game using split screen) The sample code that failed to work follows: var content: Sprite = new Sprite(); var v1: Sprite = new Sprite(); …
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
0
votes
1 answer

Why does my ScrollRect in Unity change the scroll position?

I'm currently developing a scene with a ScrollView in Unity. The component of the GameObject is called ScrollRect. I add game objects to the scroll view via code and set the scroll position to 0 in the Start() method, which means that the scroll…
Mergo
  • 64
  • 6
0
votes
1 answer

Unity - How to scroll a scrollbar for a ScrollRect smoothly?

I have a ScrollRect to which I add content to. When it reaches the point where the content is longer than the ScrollRect (ie when the ScrollBar's value changes from 0), I want the ScrollRect to scroll all the way down (I do this by tweening the…
0
votes
1 answer

Combine text and buttons in scroll rect

I'm attempting to create a scrollable UI object that has 2 sections with one on top of the other: a text section and a button list section. My main problem is that the text and list of buttons change in size depending on what content the player is…
0
votes
1 answer

Mask on ScrollRect doesn't hide child mesh objects outside of the slider (but works for text)

I have a slider scrollrect object which I populate at run time with a bunch of space ship equipment and weapons which are prefabs. The prefabs have text objects (e.g. descriptions of the equipment) as well as mesh objects. The problem I'm having is…
pandron
  • 43
  • 1
  • 8
0
votes
1 answer

ScrollRectToVisible to present matched search string to scroll to middle view of UITextView

I have a UiTextView I use to display detail text. Sometimes the text can be lengthy enough to scroll through it. Sometimes the text can be short enough that it fits within the frame of the UITextView. I also implement a search feature that one…
KDiaz
  • 37
  • 7
0
votes
1 answer

How to scroll to a specific textField element in ScrollRect with Unity scene

I am Beginner in unity. As I am trying to create a form in the single scene with multiple textField. For keyboard i need to enable the next button also if i select the last textfield in the scene screen should be move to the particular textfield. In…
0
votes
1 answer

how check if ScrollRect.OnDrag is active like boolean?

I'm trying to access my scrollrect, to know whether or not the component's drag is used, but the on-drag method is a function as the documentation says, some idea of ​​how to access ondrag like: "if ondrag is active ....."
user10466598
0
votes
0 answers

Reset (or change Pivot of) an Image in ScrollRect when scaling down

I have a single image that is displayed inside a scrollRect.. pivot is centered and the user is able to scale the image up and down using a slider.. then he/she is able to scroll drag the image around (with the scrollRect functionality) like for…
0
votes
3 answers

One pixel horizontal divider lines flicker with Unity ScrollRect?

I have some GameObjects inside of a ScrollRect (really inside of a content object which the ScrollRect translates). When the localPosition of the content object is moved, the child objects move as expected but the horizontal divider present at the…
OnesAndZeroes
  • 315
  • 1
  • 9
0
votes
0 answers

Save last position of scrollrect or rect transform

I have Level scrollrect but i like when i go to select a level i like to show me always last level(if i finish level 13 unlock me level 14 and when a go to menu scene to show me level 14 in center after this if i finish level 14 when i go again in…
Toni
  • 1
  • 3
0
votes
0 answers

Unity 5.5.0b4 - Scroll rect "elastic" mode doesn't work

i need your help. Look, I've got gameobject and on that gameobject is Unity script called "Scroll Rect". The Content of it is the 'Container', where are buttons. When i set the "Horizontal" value to false and then scroll up the container ( in the…
CallMany
  • 29
  • 6