A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Hi, Sorry, I already found the original thread and the documentation :) - deleted stupid questions- Thanks!
Hi, I am already using the 4.6.0 and everything is working. After reading your replay I took a look at the version and realized it was a quick...
Hi, I have some problems with the plugin but first I'd like to thank you all for this plugin, it's my second project using it and making great...
Hi, I have been working with some users on the forum (hi @kujo @mimminito) and we got a nice new version of the script for centering items inside...
I wrote a new version. It's the same until you get the difference. Then I translate it to content displacement percentage base on the content size...
Thanks. I am still working on it. This version centers the objects much exactly but it has problems with elastic and clamp movement types. Elastic...
I am glad you got it. I just did too :) The spring effect is because you don't have enough space at the left of your first button, so the content...
I am sorry but I can not manage to replicate it. If you have the time, can you check this scene (single scene + 2 scripts) and see what is the...
I'm going to replicate that structure and try again. By the way, there was a bug: var difference = targetAnchorPositionInScroll -...
Now I feel dumb :/ The other day I did some tests for a 3D scroll for @kujo and after using the same approach the function to center the item is...
So you mean that you have an scroll rect with a size of x,y but the mask is smaller and it is located on the right half of the screen, am I right?...
Well then it seems the UI needs a frame to recalculate and since we are "using" the scroll rect and letting it do all the work our hands are tied...
Actually I think you can but did not try it. You should be able to do the same in a normal function (not a coroutine) so it is done in a single...
Just a lucky shoot, glad it worked for you. There is a lot to improve in that script so have fun :P
Well, I use a lot of screen position jumbo mambo to calculate the scroll rect displacement so it does not work very well with 3D scroll rects....
I did not understand you when we talked about your map. The script I posted is intended for 2D maps, mostly because I did not think of a 3D map...
Well, I did not test it in world space, the script was thought for 2D scrolling. I will test it with a simple example. I am using the mask to...
Well thats bad, sorry. I have tested the script in both directions and with different content structures and thought it worked quite well. I'm...
Done. Thanks! http://forum.unity3d.com/threads/rc2-aabb-isvalid.280251/#post-1849356
I have created an script to center on an item of a scroll rect. It uses the item rect transform so it ignores child count, position and distance....