Мои Уведомления
Привет, !
Мой Аккаунт Мои Финансы Мои Подписки Мои Настройки Выход
Руководство API скрипты
public Font font;

Описание

Шрифт по умолчанию для всех стилей.

using UnityEngine; public class Example : MonoBehaviour { // Modifies the font only of the current GUISkin. public Font font; void OnGUI() { if (!font) { Debug.LogError("No font found, assign one in the inspector."); return; } GUI.skin.font = font; GUILayout.Label("This is a label with the font"); GUILayout.Button("And this is a button"); } }
Вы можете отблагодарить автора, за перевод документации на русский язык. ₽ Спасибо
API скрипты 2021.3