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

GUIContent.image

Declaration

public Texture image;

Описание

Содержащееся изображение иконки.

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