Version: 2017.3
public bool vertical ;

説明

垂直スクロールを有効にするか。

using UnityEngine;
using System.Collections;
using UnityEngine.UI;  // Required when Using UI elements.

public class ExampleClass : MonoBehaviour { public ScrollRect myScrollRect;

public void Start() { // Is Vertical scrolling enabled? if (myScrollRect.vertical == true) { Debug.Log("Vertical Scrolling is Enabled!"); } } }