GUITargetAttribute
Allows to control for which display the OnGUI is called.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
- Inherits from: Attribute
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Method)]public class GUITargetAttribute : Attribute, _Attribute
Constructors
Constructor | Description |
|---|---|
| GUITargetAttribute() | Default constructor initializes the attribute for OnGUI to be called for all available displays. |
| GUITargetAttribute(System.Int32) | Default constructor initializes the attribute for OnGUI to be called for all available displays. |
| GUITargetAttribute(System.Int32,System.Int32) | Default constructor initializes the attribute for OnGUI to be called for all available displays. |
| GUITargetAttribute(System.Int32,System.Int32,System.Int32[]) | Default constructor initializes the attribute for OnGUI to be called for all available displays. |