Text
More information can be found in the Unity API Reference
Members
Member |
Description |
---|---|
Events
Event |
Description |
---|---|
Methods
Method |
Description |
---|---|
|
|
|
|
Static members
Member |
Description |
---|---|
|
Details
-
class Text
-
bool alignByGeometry
-
const int depth
-
const float flexibleHeight
-
const float flexibleWidth
-
int fontSize
-
const GameObject gameObject
-
bool isMaskingGraphic
-
const int layoutPriority
-
float lineSpacing
-
bool maskable
-
const float minHeight
-
const float minWidth
-
const float pixelsPerUnit
-
const float preferredHeight
-
const float preferredWidth
-
bool raycastTarget
-
const RectTransform rectTransform
-
bool resizeTextForBestFit
-
int resizeTextMaxSize
-
int resizeTextMinSize
-
bool supportRichText
-
string text
-
const ScriptEvent onPointerClick
Callback Signature:
-
void callback()
-
void callback()
-
const ScriptEvent onPointerDown
Callback Signature:
-
void callback()
-
void callback()
-
const ScriptEvent onPointerEnter
Callback Signature:
-
void callback()
-
void callback()
-
const ScriptEvent onPointerExit
Callback Signature:
-
void callback()
-
void callback()
-
const ScriptEvent onPointerUp
Callback Signature:
-
void callback()
-
void callback()
-
void CalculateLayoutInputHorizontal()
-
void CalculateLayoutInputVertical()
-
void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
-
void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
-
void FontTextureChanged()
-
void GraphicUpdateComplete()
-
bool IsActive()
-
bool IsDestroyed()
-
void LayoutComplete()
-
void OnCullingChanged()
-
void RecalculateClipping()
-
void RecalculateMasking()
-
void SetAllDirty()
-
void SetLayoutDirty()
-
void SetMaterialDirty()
-
void SetNativeSize()
-
void SetRaycastDirty()
-
void SetVerticesDirty()
-
string ToString()
-
static const Material defaultGraphicMaterial
-
bool alignByGeometry