Parameters for using GUI.DrawTexture[WithTexCoords].
More...
|
void | Draw (Rect rect) |
| Draws the image in the specified rect using full alpha.
|
|
void | Draw (Rect rect, bool hasAlpha, float alpha) |
| Draw the specified rect, taking alpha into account.
|
|
|
Rect | pixelRect |
| The pixel offset and size of the image.
|
|
Texture2D | texture |
| The image to display.
|
|
bool | useTexCoords = false |
| If true , uses texCoords; otherwise scales according to scaleMode and imageAspect.
|
|
Rect | texCoords = new Rect(0, 0, 1, 1) |
| The tex coords (in the range 0..1) of the source image.
|
|
ScaleMode | scaleMode = ScaleMode.ScaleToFit |
| The scale mode (if not using tex coords).
|
|
bool | alphaBlend = true |
| If true , alpha blends the image.
|
|
Color | color = Color.white |
| The color to tint the image.
|
|
float | aspect = 0 |
| The aspect ratio for the source image.
|
|
Parameters for using GUI.DrawTexture[WithTexCoords].
◆ Draw() [1/2]
void PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.Draw |
( |
Rect |
rect | ) |
|
|
inline |
Draws the image in the specified rect using full alpha.
- Parameters
-
◆ Draw() [2/2]
void PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.Draw |
( |
Rect |
rect, |
|
|
bool |
hasAlpha, |
|
|
float |
alpha |
|
) |
| |
|
inline |
Draw the specified rect, taking alpha into account.
- Parameters
-
rect | Rect. |
hasAlpha | If set to true has alpha. |
alpha | Alpha value of color. |
◆ alphaBlend
bool PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.alphaBlend = true |
If true
, alpha blends the image.
◆ aspect
float PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.aspect = 0 |
The aspect ratio for the source image.
◆ color
Color PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.color = Color.white |
The color to tint the image.
◆ pixelRect
Rect PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.pixelRect |
The pixel offset and size of the image.
If the width and height are zero, it uses the control's scaled rect size.
◆ scaleMode
ScaleMode PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.scaleMode = ScaleMode.ScaleToFit |
The scale mode (if not using tex coords).
◆ texCoords
Rect PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.texCoords = new Rect(0, 0, 1, 1) |
The tex coords (in the range 0..1) of the source image.
Used if useTexCoords is true.
◆ texture
Texture2D PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.texture |
◆ useTexCoords
bool PixelCrushers.DialogueSystem.UnityGUI.GUIImageParams.useTexCoords = false |
If true
, uses texCoords; otherwise scales according to scaleMode and imageAspect.
The documentation for this class was generated from the following file:
- C:/Dev/Dialogue System/Dev/Release2/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Legacy/GUI Controls/GUIImageParams.cs