C# Class TypogenicText, Storms-Project

Inheritance: MonoBehaviour
ファイルを表示 Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property 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

Property Type Description
m_Colors List
m_GlyphBounds List
m_Mesh Mesh
m_SubmeshTriangles List[]
m_UVs List
m_UVs2 List
m_Vertices List

Public Methods

Method 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

Method 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 method

public AddPlaceholderGlyphBounds ( ) : void
return void

BlitQuad() public method

public BlitQuad ( Rect quad, TGlyph glyph ) : void
quad Rect
glyph TGlyph
return void

ClearGlyphBounds() public method

public ClearGlyphBounds ( ) : void
return void

GetWrappedText() public method

public GetWrappedText ( string text ) : string
text string
return string

LateUpdate() public method

public LateUpdate ( ) : void
return void

OffsetStringPosition() public method

public OffsetStringPosition ( List vertexPointers, float offsetX ) : void
vertexPointers List
offsetX float
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnMouseUpAsButton() public method

public OnMouseUpAsButton ( ) : void
return void

RebuildMesh() public method

public RebuildMesh ( ) : void
return void

RefreshColliders() public method

public RefreshColliders ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Set() public method

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
return void

StoreGlyphBounds() public method

public StoreGlyphBounds ( Bounds b ) : void
b Bounds
return void

Property Details

Alignment public_oe property

public TTextAlignment Alignment
return TTextAlignment

AutoRebuild public_oe property

public bool AutoRebuild
return bool

ColorBottomLeft public_oe property

public Color ColorBottomLeft
return Color

ColorBottomRight public_oe property

public Color ColorBottomRight
return Color

ColorTopLeft public_oe property

public Color ColorTopLeft
return Color

ColorTopRight public_oe property

public Color ColorTopRight
return Color

DrawGlyphBoundsGizmos public_oe property

public bool DrawGlyphBoundsGizmos
return bool

EnableClickSupport public_oe property

public bool EnableClickSupport
return bool

FillMode public_oe property

public TFillMode FillMode
return TFillMode

Font public_oe property

public TypogenicFont Font
return TypogenicFont

GenerateNormals public_oe property

public bool GenerateNormals
return bool

Leading public_oe property

public float Leading
return float

ParagraphSpacing public_oe property

public float ParagraphSpacing
return float

Size public_oe property

public float Size
return float

Stationary public_oe property

public bool Stationary
return bool

Text public_oe property

public string Text
return string

Tracking public_oe property

public float Tracking
return float

WordWrap public_oe property

public float WordWrap
return float

m_Colors protected_oe property

protected List m_Colors
return List

m_GlyphBounds protected_oe property

protected List m_GlyphBounds
return List

m_Mesh protected_oe property

protected Mesh m_Mesh
return Mesh

m_SubmeshTriangles protected_oe property

protected List[] m_SubmeshTriangles
return List[]

m_UVs protected_oe property

protected List m_UVs
return List

m_UVs2 protected_oe property

protected List m_UVs2
return List

m_Vertices protected_oe property

protected List m_Vertices
return List