Hello help me please I am a beginner:

Hello help me please I am a beginner:

I need a script to GUI Box with 20 images but that the scroll box for android

Next: I need if click on images image is enlarged on full Screen.

And when moving your finger to left on the picture skip to picture 2

Very much thanks for help

This is not how the forums work. If you need code, you have to Google it. If you can’t code, you need to learn it. There are plenty of tutorials on GUI and coding.

I wrote this script
But I want to scrolling work when you move finger on box not on slider help me pls

var scrollViewVector : Vector2 = Vector2.zero;

var texture :  Texture2D ;
var texture1 :  Texture2D ;
var texture2 :  Texture2D ;
var texture3 :  Texture2D ;
var texture4 :  Texture2D ;
var texture5 :  Texture2D ;
var texture6 :  Texture2D ;
var texture7 :  Texture2D ;
var texture8 :  Texture2D ;
var texture9 :  Texture2D ;
var texture10:  Texture2D ;
var texture11 :  Texture2D ;
var texture12 :  Texture2D ;
var texture13 :  Texture2D ;
var texture14 :  Texture2D ;
var texture15 :  Texture2D ;
var texture16 :  Texture2D ;
var texture17 :  Texture2D ;
var texture18 :  Texture2D ;
var texture19 :  Texture2D ;
var texture20 :  Texture2D ;
var texture21 :  Texture2D ;
var texture22:  Texture2D ;
var texture23 :  Texture2D ;


function OnGUI () {
    // Begin the ScrollView
    scrollViewVector = GUI.BeginScrollView (Rect (0, 0, 600, 600), scrollViewVector, Rect (0, 0, 0,2000));

    // Put something inside the ScrollView
          GUI.skin.button = new GUIStyle();
     if (GUI.Button (Rect (0,0,200,200), texture )) {
       
  
    }

    if (GUI.Button (Rect (200,0,200,200), texture1  )) {
       
    }
 
    if (GUI.Button (Rect (400,0,200,200), texture2  )) {
       
    }
  
    if (GUI.Button (Rect (0,200,200,200), texture3 )) {
        
    }

    if (GUI.Button (Rect (200,200,200,200), texture4  )) {
       
    }
 
    if (GUI.Button (Rect (400,200,200,200), texture5  )) {
        
    }
  
    if (GUI.Button (Rect (0,400,200,200), texture6)) {
        
    }

    if (GUI.Button (Rect (200,400,200,200), texture7  )) {
       
    }
 
    if (GUI.Button (Rect (400,400,200,200), texture8  )) {
     
    }
     
    if (GUI.Button (Rect (0,600,200,200), texture9)) {
       
    }

    if (GUI.Button (Rect (200,600,200,200), texture10  )) {
       
    }
 
    if (GUI.Button (Rect (400,600,200,200), texture11 )) {
        
    } 
        
    if (GUI.Button (Rect (0,800,200,200), texture12 )) {
        
    }

    if (GUI.Button (Rect (200,800,200,200), texture13  )) {
        
    }
 
    if (GUI.Button (Rect (400,800,200,200), texture14  )) {
      
    }
  
    if (GUI.Button (Rect (0,1000,200,200), texture15 )) {
     
    }

    if (GUI.Button (Rect (200,1000,200,200), texture16 )) {
        
    }
 
    if (GUI.Button (Rect (400,1000,200,200), texture17  )) {
       
    }
  
    if (GUI.Button (Rect (0,1200,200,200), texture18)) {
        
    }

    if (GUI.Button (Rect (200,1200,200,200), texture19  )) {
      
    }
 
    if (GUI.Button (Rect (400,1200,200,200), texture20  )) {
        
    }
     
    if (GUI.Button (Rect (0,1400,200,200), texture21)) {
        
    }

    if (GUI.Button (Rect (200,1400,200,200), texture22  )) {
        
    }
 
    if (GUI.Button (Rect (400,1400,200,200), texture23 )) {
       
    } 
        
  
  
  
    // End the ScrollView
    GUI.EndScrollView();
  
}

While this might not exactly solve your issue, but you might consider automating the process a bit, instead of creating 20 textures you couldn’t created an array, also a loop for the rects inside the onGUI with dynamic parameters.

I am not quite familiar with the new UI yet (doesn’t use onGUI), I did a simple google search and found this video (I didn’t watch it yet, but the title looks on the subject).

Hello Can you help me as I will do loop for the rects inside the onGUI with dynamic parameters.?

Do yourself a favour and watch the loops tutorial on the learn section. There is also a video on arrays. Will reduce the code you posted down to half a dozen lines