[Closed] [SOLVED] Horizontal and Vertical scrolling?

Do tell if you have issues getting it to work. To give you a headstart:

The hierarchy is

  • [Border]
  • [OuterCanvas]
  • [InnerCanvas]

The border’s clipping is set to ClipToBounds and the Inner canvas is centred like so:

293489-annotation-2019-12-06-085011.png

Shift + Control + Click the middle tile to get it all in one go (optional since you may have an anchoring idea of your own, of course). The rest of the script is as in the post. You may need to adjust the clamps if the skill tree is not full screen.

The inner canvas is much larger than the outer - the idea is to shift the position of the inner within the outer one.

The illusion is pretty convincing:

Image from Gyazo

Adding sliders (if needed) should be fairly easy here, map range their 0-1 output to the inner canvas’ offset in its parent. Should work.

Even without map ranging anything, it seems to work OK, albeit a wee bit jerky.:

Image from Gyazo

You may just need to get the numbers right. Or extract the exact values from widget elements.

2 Likes