An image. This wraps Unity's IMGUI Label.
More...
|
| Image (Rect box, Texture texture=null, string name=null) |
| Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class. More...
|
|
| Image (Texture texture=null, string name=null) |
| Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class with automatic layout. More...
|
|
override void | OnGUI () |
| GUI operations to perform in the OnGUI scope. This is basically equivalent to a MonoBehaviour's OnGUI method. More...
|
|
|
Rect | Box = Rect.zero [get, set] |
| The rectangular area in the window that the image can use More...
|
|
bool | Enabled = true [get, set] |
| Whether to display the UI element or not. More...
|
|
string | Name [get] |
| The element's name. This should be unique for every instance of the class. More...
|
|
Texture | Texture [get, set] |
| The image texture to display More...
|
|
An image. This wraps Unity's IMGUI Label.
◆ Image() [1/2]
TechbloxModdingAPI.Interface.IMGUI.Image.Image |
( |
Texture |
texture = null , |
|
|
string |
name = null |
|
) |
| |
|
inline |
Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class with automatic layout.
- Parameters
-
texture | Image to display. |
name | The element's name. |
◆ Image() [2/2]
TechbloxModdingAPI.Interface.IMGUI.Image.Image |
( |
Rect |
box, |
|
|
Texture |
texture = null , |
|
|
string |
name = null |
|
) |
| |
|
inline |
Initializes a new instance of the T:TechbloxModdingAPI.Interface.IMGUI.Image class.
- Parameters
-
box | Rectangular area for the image. |
texture | Image to display. |
name | The element's name. |
◆ OnGUI()
override void TechbloxModdingAPI.Interface.IMGUI.Image.OnGUI |
( |
| ) |
|
|
inlinevirtual |
◆ Box
Rect TechbloxModdingAPI.Interface.IMGUI.Image.Box = Rect.zero |
|
getset |
The rectangular area in the window that the image can use
◆ Enabled
bool TechbloxModdingAPI.Interface.IMGUI.UIElement.Enabled = true |
|
getsetinherited |
Whether to display the UI element or not.
◆ Name
string TechbloxModdingAPI.Interface.IMGUI.UIElement.Name |
|
getinherited |
The element's name. This should be unique for every instance of the class.
◆ Texture
Texture TechbloxModdingAPI.Interface.IMGUI.Image.Texture |
|
getset |
The image texture to display
The documentation for this class was generated from the following file:
- TechbloxModdingAPI/Interface/IMGUI/Image.cs