• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Brogan89 · Jul 25, 2017 at 01:11 AM · scrollviewscrollcontentnormalized

How to expand scrollRect content without having normalized position snap back to 1 (ScrollJacking)

Hi, I have a scrollRect in which I can add/remove objects, but if I am at the bottom of the content i.e normalizedPosition = (0,0). It will snap back to the top of the normalizedPosition = (0,1) How can i stop this from happening?

What I want to happen is, if the normalizedPosition is 0.5f and I add a gameObject causing the scrollRect.contentto expand, I want the normalized position to not move, but still allow the content to expand.

I have tried doing something like:

currentPos = normalizedPosition;

normalizedPosition = currentPos;

which I am getting a currentPos then applying currentPos within an event. But this caused the scrollRect to snap to top and then snap back to position... obviously not ideal

I hope this makes sense.

Any help would be much appreciated, thanks.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brogan89 · Jul 25, 2017 at 02:34 AM 0
Share

For any one who stumbles across this. I have posted correct answer in http://answers.unity3d.com/questions/1190703/scrollrect-resetting-scroll-position-on-content-ch.html?childToView=1383985#answer-1383985

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

67 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help with finding normalized position of buttons in scroll rect? 0 Answers

Drag on Scroll Rect Non Proportional 0 Answers

How to hide scrollbar on side of the view 0 Answers

Layout Element required for scroll views but only on Android 0 Answers

Scrollview is positioning things incorrectly 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges