Image

More information can be found in the Unity API Reference

Members

Member

Description

alphaHitTestMinimumThreshold

canvas

color

defaultMaterial

depth

fillAmount

fillCenter

fillClockwise

fillOrigin

flexibleHeight

flexibleWidth

gameObject

hasBorder

isMaskingGraphic

layoutPriority

mainTexture

maskable

material

materialForRendering

minHeight

minWidth

overrideSprite

pixelsPerUnit

pixelsPerUnitMultiplier

preferredHeight

preferredWidth

preserveAspect

raycastPadding

raycastTarget

rectTransform

sprite

transform

useSpriteMesh

Events

Event

Description

onPointerClick

onPointerDown

onPointerEnter

onPointerExit

onPointerUp

Methods

Method

Description

CalculateLayoutInputHorizontal()

CalculateLayoutInputVertical()

CrossFadeAlpha(alpha, duration, ignoreTimeScale)

CrossFadeColor(targetColor, duration, ignoreTimeScale, useAlpha)

CrossFadeColor(targetColor, duration, ignoreTimeScale, useAlpha, useRGB)

Cull(clipRect, validRect)

DisableSpriteOptimizations()

GetModifiedMaterial(baseMaterial)

GetPixelAdjustedRect()

GraphicUpdateComplete()

IsActive()

IsDestroyed()

IsRaycastLocationValid(screenPoint, eventCamera)

LayoutComplete()

OnAfterDeserialize()

OnBeforeSerialize()

OnCullingChanged()

PixelAdjustPoint(point)

Raycast(sp, eventCamera)

RecalculateClipping()

RecalculateMasking()

SetAllDirty()

SetClipRect(clipRect, validRect)

SetClipSoftness(clipSoftness)

SetLayoutDirty()

SetMaterialDirty()

SetNativeSize()

SetRaycastDirty()

SetVerticesDirty()

ToString()

Static members

Member

Description

defaultETC1GraphicMaterial

defaultGraphicMaterial

Details

class Image
float alphaHitTestMinimumThreshold
const Canvas canvas
Color color
const Material defaultMaterial
const int depth
float fillAmount
bool fillCenter
bool fillClockwise
int fillOrigin
const float flexibleHeight
const float flexibleWidth
const GameObject gameObject
const bool hasBorder
bool isMaskingGraphic
const int layoutPriority
const Texture mainTexture
bool maskable
Material material
const Material materialForRendering
const float minHeight
const float minWidth
Sprite overrideSprite
const float pixelsPerUnit
float pixelsPerUnitMultiplier
const float preferredHeight
const float preferredWidth
bool preserveAspect
Vector4 raycastPadding
bool raycastTarget
const RectTransform rectTransform
Sprite sprite
const Transform transform
bool useSpriteMesh
const ScriptEvent onPointerClick

Callback Signature:

void callback()
const ScriptEvent onPointerDown

Callback Signature:

void callback()
const ScriptEvent onPointerEnter

Callback Signature:

void callback()
const ScriptEvent onPointerExit

Callback Signature:

void callback()
const ScriptEvent onPointerUp

Callback Signature:

void callback()
void CalculateLayoutInputHorizontal()
void CalculateLayoutInputVertical()
void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
void Cull(Rect clipRect, bool validRect)
void DisableSpriteOptimizations()
Material GetModifiedMaterial(Material baseMaterial)
Rect GetPixelAdjustedRect()
void GraphicUpdateComplete()
bool IsActive()
bool IsDestroyed()
bool IsRaycastLocationValid(Vector2 screenPoint, Camera eventCamera)
void LayoutComplete()
void OnAfterDeserialize()
void OnBeforeSerialize()
void OnCullingChanged()
Vector2 PixelAdjustPoint(Vector2 point)
bool Raycast(Vector2 sp, Camera eventCamera)
void RecalculateClipping()
void RecalculateMasking()
void SetAllDirty()
void SetClipRect(Rect clipRect, bool validRect)
void SetClipSoftness(Vector2 clipSoftness)
void SetLayoutDirty()
void SetMaterialDirty()
void SetNativeSize()
void SetRaycastDirty()
void SetVerticesDirty()
string ToString()
static const Material defaultETC1GraphicMaterial
static const Material defaultGraphicMaterial