Unity 6.3
0 онлайн 2 гостей 3 в системе
Вход

GUI.contentColor

Declaration

public static Color contentColor;

Описание

Цвет тонирования для всего текста, отображаемого GUI.

Это умножается на color.

Дополнительные ресурсы: backgroundColor, color.


Желтый контент цвет (шрифт) в кнопке.

// Tints with yellow the letters of the button.

using UnityEngine; using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { GUI.contentColor = Color.yellow; GUI.Button(new Rect(10, 10, 70, 30), "A button"); } }