Unity3D Editor Tooltip


public GUIContent(string text, string tooltip);

using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void OnGUI() {
GUI.Button(new Rect(0, 0, 100, 20), new GUIContent("Click me", "This is the tooltip"));
GUI.Label(new Rect(0, 40, 100, 40), GUI.tooltip);
}
}


[Tooltip("My tooltip")]
public string remoteUrl;

你可能感兴趣的:(Unity3D Editor Tooltip)