Text

More information can be found in the Unity API Reference

Members

Member

Description

alignByGeometry

canvas

color

defaultMaterial

depth

flexibleHeight

flexibleWidth

font

fontSize

gameObject

isMaskingGraphic

layoutPriority

lineSpacing

mainTexture

maskable

material

materialForRendering

minHeight

minWidth

pixelsPerUnit

preferredHeight

preferredWidth

raycastPadding

raycastTarget

rectTransform

resizeTextForBestFit

resizeTextMaxSize

resizeTextMinSize

supportRichText

text

transform

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)

FontTextureChanged()

GetModifiedMaterial(baseMaterial)

GetPixelAdjustedRect()

GraphicUpdateComplete()

IsActive()

IsDestroyed()

LayoutComplete()

OnCullingChanged()

PixelAdjustPoint(point)

Raycast(sp, eventCamera)

RecalculateClipping()

RecalculateMasking()

SetAllDirty()

SetClipRect(clipRect, validRect)

SetClipSoftness(clipSoftness)

SetLayoutDirty()

SetMaterialDirty()

SetNativeSize()

SetRaycastDirty()

SetVerticesDirty()

ToString()

Static members

Member

Description

defaultGraphicMaterial

Details

class Text
bool alignByGeometry
const Canvas canvas
Color color
const Material defaultMaterial
const int depth
const float flexibleHeight
const float flexibleWidth
Font font
int fontSize
const GameObject gameObject
bool isMaskingGraphic
const int layoutPriority
float lineSpacing
const Texture mainTexture
bool maskable
Material material
const Material materialForRendering
const float minHeight
const float minWidth
const float pixelsPerUnit
const float preferredHeight
const float preferredWidth
Vector4 raycastPadding
bool raycastTarget
const RectTransform rectTransform
bool resizeTextForBestFit
int resizeTextMaxSize
int resizeTextMinSize
bool supportRichText
string text
const Transform transform
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 FontTextureChanged()
Material GetModifiedMaterial(Material baseMaterial)
Rect GetPixelAdjustedRect()
void GraphicUpdateComplete()
bool IsActive()
bool IsDestroyed()
void LayoutComplete()
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 defaultGraphicMaterial