C# Class TypogenicText, Storms-Project

Inheritance: MonoBehaviour
Afficher le fichier Open project: patferguson/Storms-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
Alignment TTextAlignment
AutoRebuild bool
ColorBottomLeft Color
ColorBottomRight Color
ColorTopLeft Color
ColorTopRight Color
DrawGlyphBoundsGizmos bool
EnableClickSupport bool
FillMode TFillMode
Font TypogenicFont
GenerateNormals bool
Leading float
ParagraphSpacing float
Size float
Stationary bool
Text string
Tracking float
WordWrap float

Protected Properties

Свойство Type Description
m_Colors List
m_GlyphBounds List
m_Mesh Mesh
m_SubmeshTriangles List[]
m_UVs List
m_UVs2 List
m_Vertices List

Méthodes publiques

Méthode Description
AddPlaceholderGlyphBounds ( ) : void
BlitQuad ( Rect quad, TGlyph glyph ) : void
ClearGlyphBounds ( ) : void
GetWrappedText ( string text ) : string
LateUpdate ( ) : void
OffsetStringPosition ( List vertexPointers, float offsetX ) : void
OnDisable ( ) : void
OnDrawGizmos ( ) : void
OnEnable ( ) : void
OnMouseUpAsButton ( ) : void
RebuildMesh ( ) : void
RefreshColliders ( ) : void
Reset ( ) : void
Set ( string text = null, float size = null, float leading = null, float tracking = null, float paragraphSpacing = null, TTextAlignment alignement = null, float wordWrap = null ) : void
StoreGlyphBounds ( Bounds b ) : void

Private Methods

Méthode Description
BlitString ( string str, float cursorX, float cursorY, List vertexPointers = null ) : float
GetGlyphIndexAtWorldPoint ( Vector3 point ) : int
GetStringWidth ( string str ) : float
IsTextNullOrEmpty ( ) : bool
TranslateBounds ( Bounds b ) : Bounds

Method Details

AddPlaceholderGlyphBounds() public méthode

public AddPlaceholderGlyphBounds ( ) : void
Résultat void

BlitQuad() public méthode

public BlitQuad ( Rect quad, TGlyph glyph ) : void
quad Rect
glyph TGlyph
Résultat void

ClearGlyphBounds() public méthode

public ClearGlyphBounds ( ) : void
Résultat void

GetWrappedText() public méthode

public GetWrappedText ( string text ) : string
text string
Résultat string

LateUpdate() public méthode

public LateUpdate ( ) : void
Résultat void

OffsetStringPosition() public méthode

public OffsetStringPosition ( List vertexPointers, float offsetX ) : void
vertexPointers List
offsetX float
Résultat void

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

OnMouseUpAsButton() public méthode

public OnMouseUpAsButton ( ) : void
Résultat void

RebuildMesh() public méthode

public RebuildMesh ( ) : void
Résultat void

RefreshColliders() public méthode

public RefreshColliders ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Set() public méthode

public Set ( string text = null, float size = null, float leading = null, float tracking = null, float paragraphSpacing = null, TTextAlignment alignement = null, float wordWrap = null ) : void
text string
size float
leading float
tracking float
paragraphSpacing float
alignement TTextAlignment
wordWrap float
Résultat void

StoreGlyphBounds() public méthode

public StoreGlyphBounds ( Bounds b ) : void
b Bounds
Résultat void

Property Details

Alignment public_oe property

public TTextAlignment Alignment
Résultat TTextAlignment

AutoRebuild public_oe property

public bool AutoRebuild
Résultat bool

ColorBottomLeft public_oe property

public Color ColorBottomLeft
Résultat Color

ColorBottomRight public_oe property

public Color ColorBottomRight
Résultat Color

ColorTopLeft public_oe property

public Color ColorTopLeft
Résultat Color

ColorTopRight public_oe property

public Color ColorTopRight
Résultat Color

DrawGlyphBoundsGizmos public_oe property

public bool DrawGlyphBoundsGizmos
Résultat bool

EnableClickSupport public_oe property

public bool EnableClickSupport
Résultat bool

FillMode public_oe property

public TFillMode FillMode
Résultat TFillMode

Font public_oe property

public TypogenicFont Font
Résultat TypogenicFont

GenerateNormals public_oe property

public bool GenerateNormals
Résultat bool

Leading public_oe property

public float Leading
Résultat float

ParagraphSpacing public_oe property

public float ParagraphSpacing
Résultat float

Size public_oe property

public float Size
Résultat float

Stationary public_oe property

public bool Stationary
Résultat bool

Text public_oe property

public string Text
Résultat string

Tracking public_oe property

public float Tracking
Résultat float

WordWrap public_oe property

public float WordWrap
Résultat float

m_Colors protected_oe property

protected List m_Colors
Résultat List

m_GlyphBounds protected_oe property

protected List m_GlyphBounds
Résultat List

m_Mesh protected_oe property

protected Mesh m_Mesh
Résultat Mesh

m_SubmeshTriangles protected_oe property

protected List[] m_SubmeshTriangles
Résultat List[]

m_UVs protected_oe property

protected List m_UVs
Résultat List

m_UVs2 protected_oe property

protected List m_UVs2
Résultat List

m_Vertices protected_oe property

protected List m_Vertices
Résultat List