image
The icon image contained.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public Texture image { get; set; }
Examples
using UnityEngine;public class ExampleScript : MonoBehaviour{ public Texture icon; void OnGUI() { if (!icon) { Debug.LogError("Add a texture on the inspector first"); return; } GUI.Button(new Rect(0, 0, 100, 20), new GUIContent(icon)); }}