Forum rules - please read before posting.

Scrolling through documents

Hi! I've tried to follow this tutorial in order to implement a simple image that can be scrolled around with drag&drop:

https://adventurecreator.org/tutorials/scrolling-through-documents

All works fine, but i cannot add an image that is larger than screen whitout using a "Absolute pixel" to setup the image size. If i use "manual", the image is scaled to fit the sizes of the whole menu... i'm missing something?
Thanks!

Comments

  • edited April 2019

    Welcome to the community, @pinellos.

    The element cannot be bigger than the screen, but bear in mind that this is only when using the "Adventure Creator" source option for your Menu's display. When using Unity UI, you can rely on ScrollViews to drag around an image - see the note at the top of the tutorial.

    You can quickly see how Unity UI can be used for this by choosing "GameObject -> UI -> Scroll View" from the top toolbar. You can connect the "Content" object's Image component to an AC Menu's Graphic element. For a tutorial on connecting a Menu to Unity UI, see this tutorial.

  • Ok perfect! i will use unity UI for this!
    Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.