autoscrollrect - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.UI
Inherits from UnityEngine.MonoBehaviour
Manages a set of MapPoints controlling the behavior of MapPoints during TP-Mode.
For controlling what is shown when the player is present and what not, use a PlayerDetector on the MapPoints themselves.
Attention: Make sure that you correctly set the the height of your "Content"-GameObject so that it can fit everyting inside. If you don't do that, the scrolling will not work!
You can check it by disabling the "Mask"-Component of the Viewport-GameObject.
public class AutoScrollRect : MonoBehaviour| Name | Description |
|---|---|
| ScrollDirection | Scrolling direction when scrolling automatically. |
| Name | Description |
|---|---|
| OnScrollDownCompleted | Emitted when the scroll stops at the bottom. |
| OnScrollStarted | Event emitted when a scroll is started or the direction is changed. |
| OnScrollUpCompleted | Emitted when the scroll stops at the top. |
| Name | Description |
|---|---|
| ScrollDown() | Starts scrolling up. |
| ScrollToBottom(bool) | Scrolls to the bottom instantly. |
| ScrollToTop(bool) | Scrolls to the top instantly. |
| ScrollUp() | Starts scrolling up. |
| Name | Description |
|---|---|
| AutoScrolling | If enabled, the rect will scroll automatically. |