GUITargetAttribute.GUITargetAttribute

Unity · Версия 2020.3 LTS · Scripting · GUITargetAttribute

GUITargetAttribute.GUITargetAttribute

Объявление

public GUITargetAttribute();

public GUITargetAttribute(int displayIndex);

public GUITargetAttribute(int displayIndex, int displayIndex1);

public GUITargetAttribute(int displayIndex, int displayIndex1, params int[] displayIndexList);

Параметры

displayIndex Показать индекс.
displayIndex1 Показать индекс.
displayIndexList Показать индексный список.

Описание

Конструктор по умолчанию инициализирует атрибут для вызова OnGUI для всех доступных дисплеев.

Обновлено 17 ноября 2026 г.