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:GamecraftModdingAPI.Interface.IMGUI.Image class. More...
|
|
| Image (Texture texture=null, string name=null) |
| Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Image class with automatic layout. More...
|
|
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 image and everything in it. More...
|
|
string | Name [get] |
| The image element's unique name. More...
|
|
Texture | Texture [get, set] |
| The image texture to display More...
|
|
An image. This wraps Unity's IMGUI Label.
◆ Image() [1/2]
GamecraftModdingAPI.Interface.IMGUI.Image.Image |
( |
Texture |
texture = null , |
|
|
string |
name = null |
|
) |
| |
|
inline |
Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Image class with automatic layout.
- Parameters
-
texture | Image to display. |
name | The element's name. |
◆ Image() [2/2]
GamecraftModdingAPI.Interface.IMGUI.Image.Image |
( |
Rect |
box, |
|
|
Texture |
texture = null , |
|
|
string |
name = null |
|
) |
| |
|
inline |
Initializes a new instance of the T:GamecraftModdingAPI.Interface.IMGUI.Image class.
- Parameters
-
box | Rectangular area for the image. |
texture | Image to display. |
name | The element's name. |
◆ OnGUI()
void GamecraftModdingAPI.Interface.IMGUI.Image.OnGUI |
( |
| ) |
|
|
inline |
◆ Box
Rect GamecraftModdingAPI.Interface.IMGUI.Image.Box = Rect.zero |
|
getset |
The rectangular area in the window that the image can use
◆ Enabled
bool GamecraftModdingAPI.Interface.IMGUI.Image.Enabled = true |
|
getset |
Whether to display the image and everything in it.
◆ Name
string GamecraftModdingAPI.Interface.IMGUI.Image.Name |
|
get |
The image element's unique name.
◆ Texture
Texture GamecraftModdingAPI.Interface.IMGUI.Image.Texture |
|
getset |
The image texture to display
The documentation for this class was generated from the following file:
- GamecraftModdingAPI/Interface/IMGUI/Image.cs