к ней прицепил скроллинг
код взял из справки
Синтаксис:
Используется csharp
using UnityEngine;
using System.Collections;
public class test : MonoBehaviour {
public Texture aTex;
public Vector2 scrollPosition = Vector2.zero;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI () {
scrollPosition = GUI.BeginScrollView(new Rect(10, 100, 500, 500), scrollPosition, new Rect(0, 0, 500, 1000));
GUI.DrawTexture(new Rect(0, 0, 500, 1000), aTex, ScaleMode.StretchToFill, true, 10.0F);
GUI.EndScrollView();
}
}
using System.Collections;
public class test : MonoBehaviour {
public Texture aTex;
public Vector2 scrollPosition = Vector2.zero;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI () {
scrollPosition = GUI.BeginScrollView(new Rect(10, 100, 500, 500), scrollPosition, new Rect(0, 0, 500, 1000));
GUI.DrawTexture(new Rect(0, 0, 500, 1000), aTex, ScaleMode.StretchToFill, true, 10.0F);
GUI.EndScrollView();
}
}
вопрос - как скрыть скроллинг? (кроме варианта сделать его прозрачным)