기술 자료

Unity Engine

Unity Engine

contentColor

Tinting color for all text rendered by the GUI.
읽는 시간 1분최근 업데이트: 20일 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public static Color contentColor { get; set; }

Remarks

This gets multiplied by GUI.color.
GUIContentColor (contentColor)
Yellow content color (font) in a button.
Additional Resources: GUI.backgroundColor, GUI.color

Examples

// 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"); }}