Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ScrollViewScope

class in UnityEngine

Switch to Manual

Description

Disposable helper class for managing BeginScrollView / EndScrollView.

BeginScrollView is called at construction, and EndScrollView is called when the instance is disposed. ScrollViews let you make a smaller area on-screen look 'into' a much larger area, using scrollbars placed on the sides of the ScrollView.

no example available in JavaScript

Variables

handleScrollWheelWhether this ScrollView should handle scroll wheel events. (default: true).
scrollPositionThe modified scrollPosition. Feed this back into the variable you pass in, as shown in the example.

Constructors

GUI.ScrollViewScopeCreate a new ScrollViewScope and begin the corresponding ScrollView.