C# Class SysFont, unity-sysfont

Inheritance: MonoBehaviour
Mostra file Open project: appbankgames/unity-sysfont Class Usage Examples

Private Properties

Property Type Description
_SysFontAddHighlightedColor void
_SysFontClearHighlightedColors void
_SysFontDequeueTexture void
_SysFontGetTextHeight int
_SysFontGetTextWidth int
_SysFontGetTextureHeight int
_SysFontGetTextureWidth int
_SysFontQueueTexture void
_SysFontQueueTextureWithOptions void
_SysFontRender void
_SysFontUpdateQueuedTexture void

Public Methods

Method Description
AddHighlightedColor ( Color color ) : void
ClearHighlightedColors ( ) : void
DequeueTexture ( int textureID ) : void
GetTextHeight ( int textureID ) : int
GetTextWidth ( int textureID ) : int
GetTextureHeight ( int textureID ) : int
GetTextureWidth ( int textureID ) : int
QueueTexture ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, bool isMultiLine, int maxWidthPixels, int maxHeightPixels, int textureID ) : void
QueueTextureWithOptions ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, bool isMultiLine, int maxWidthPixels, int maxHeightPixels, int lineBreakMode, float fillColorR, float fillColorG, float fillColorB, float fillColorA, bool isStrokeEnabled, float strokeWidth, float strokeColorR, float strokeColorG, float strokeColorB, float strokeColorA, bool isShadowEnabled, float shadowOffsetX, float shadowOffsetY, float shadowColorR, float shadowColorG, float shadowColorB, float shadowColorA, float lineSpacing, float offset, int textureID ) : void
SafeDestroy ( UnityEngine obj ) : void
UpdateQueuedTexture ( int textureID ) : void

Private Methods

Method Description
_SysFontAddHighlightedColor ( float r, float g, float b, float a ) : void
_SysFontClearHighlightedColors ( ) : void
_SysFontDequeueTexture ( int textureID ) : void
_SysFontGetTextHeight ( int textureID ) : int
_SysFontGetTextWidth ( int textureID ) : int
_SysFontGetTextureHeight ( int textureID ) : int
_SysFontGetTextureWidth ( int textureID ) : int
_SysFontQueueTexture ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, int maxWidthPixels, int maxHeightPixels, int textureID ) : void
_SysFontQueueTextureWithOptions ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, int maxWidthPixels, int maxHeightPixels, int lineBreakMode, float fillColorR, float fillColorG, float fillColorB, float fillColorA, bool isStrokeEnabled, float strokeWidth, float strokeColorR, float strokeColorG, float strokeColorB, float strokeColorA, bool isShadowEnabled, float shadowOffsetX, float shadowOffsetY, float shadowColorR, float shadowColorG, float shadowColorB, float shadowColorA, float lineSpacing, float offset, int textureID ) : void
_SysFontRender ( ) : void
_SysFontUpdateQueuedTexture ( int textureID ) : void

Method Details

AddHighlightedColor() public static method

public static AddHighlightedColor ( Color color ) : void
color Color
return void

ClearHighlightedColors() public static method

public static ClearHighlightedColors ( ) : void
return void

DequeueTexture() public static method

public static DequeueTexture ( int textureID ) : void
textureID int
return void

GetTextHeight() public static method

public static GetTextHeight ( int textureID ) : int
textureID int
return int

GetTextWidth() public static method

public static GetTextWidth ( int textureID ) : int
textureID int
return int

GetTextureHeight() public static method

public static GetTextureHeight ( int textureID ) : int
textureID int
return int

GetTextureWidth() public static method

public static GetTextureWidth ( int textureID ) : int
textureID int
return int

QueueTexture() public static method

public static QueueTexture ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, bool isMultiLine, int maxWidthPixels, int maxHeightPixels, int textureID ) : void
text string
fontName string
fontSize int
isBold bool
isItalic bool
alignment Alignment,
isMultiLine bool
maxWidthPixels int
maxHeightPixels int
textureID int
return void

QueueTextureWithOptions() public static method

public static QueueTextureWithOptions ( string text, string fontName, int fontSize, bool isBold, bool isItalic, Alignment, alignment, bool isMultiLine, int maxWidthPixels, int maxHeightPixels, int lineBreakMode, float fillColorR, float fillColorG, float fillColorB, float fillColorA, bool isStrokeEnabled, float strokeWidth, float strokeColorR, float strokeColorG, float strokeColorB, float strokeColorA, bool isShadowEnabled, float shadowOffsetX, float shadowOffsetY, float shadowColorR, float shadowColorG, float shadowColorB, float shadowColorA, float lineSpacing, float offset, int textureID ) : void
text string
fontName string
fontSize int
isBold bool
isItalic bool
alignment Alignment,
isMultiLine bool
maxWidthPixels int
maxHeightPixels int
lineBreakMode int
fillColorR float
fillColorG float
fillColorB float
fillColorA float
isStrokeEnabled bool
strokeWidth float
strokeColorR float
strokeColorG float
strokeColorB float
strokeColorA float
isShadowEnabled bool
shadowOffsetX float
shadowOffsetY float
shadowColorR float
shadowColorG float
shadowColorB float
shadowColorA float
lineSpacing float
offset float
textureID int
return void

SafeDestroy() public static method

public static SafeDestroy ( UnityEngine obj ) : void
obj UnityEngine
return void

UpdateQueuedTexture() public static method

public static UpdateQueuedTexture ( int textureID ) : void
textureID int
return void