unity-game-enginescrollviewngui

How to make a ScrollView with many buttons in one page in Unity3D?


I want to make a manual like this:

It can switch to the next page or last page, and click on the character it will turn to the detail page.

enter image description here

Now I have achieved this:

enter image description here

The problem is when the mouse is on the character, it can not scroll view but just turn to the detail page.

I can only scroll view by putting mouse in the space out of character and drag.

How can I drag anywhere to scroll view and just click to turn to the detail page?


Solution

  • I modified my script and then fixed it.

    //I use void OnPress(bool isPressed) before,and it causes conflict with scrollview
    void OnClick()
    {
        Application.LoadLevel("Main");
    }