public GetTexture ( GUIFont, font ) : |
||
font | GUIFont, | |
return |
public Texture2D GetTexture(GUIFont font)
{
Texture2D texture = null;
if(this.content.image != null)
{
texture = this.content.image as Texture2D;
}
else
{
texture = font.GetTextTexture(this.content.text, (int)this.bounds.width, (int)this.bounds.height);
}
return texture;
}