GUIContent.text

public string text;

Description

The text contained.

using UnityEngine;

public class ExampleScript : MonoBehaviour { void OnGUI() { GUI.Button(new Rect(0, 0, 100, 20), new GUIContent("Click me!")); } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答