Version: 2017.3

GUILayout.EndScrollView

Switch to Manual
public static void EndScrollView ();

Description

Окончание scroll view, начинающегося вызовом BeginScrollView.

См. также: GUILayout.BeginScrollView


Scroll View in the Game View..

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Vector2 scrollPosition; public string longString = "This is a long-ish string"; void OnGUI() { scrollPosition = GUILayout.BeginScrollView(scrollPosition, GUILayout.Width(100), GUILayout.Height(100)); GUILayout.Label(longString); if (GUILayout.Button("Clear")) longString = ""; GUILayout.EndScrollView(); if (GUILayout.Button("Add More Text")) longString += "\nHere is another line"; } }