GUIStyle.clipping

Unity · Версия 2020.3 LTS · Scripting · GUIStyle

GUIStyle.clipping

public TextClipping clipping;

Описание

Что делать, если отображаемое содержимое слишком велико и не помещается в указанную область.

using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints how is managed the text when the contents rendered
    // are too large to fir in the area given.

    void OnGUI()
    {
        Debug.Log(GUI.skin.button.clipping);
    }
}

Обновлено 17 ноября 2026 г.