跳到主要内容

Class Label

Label. Supports image and text.

Properties

interval

public float interval { get; set; }

text

public string text { get; set; }

texture

public Texture texture { get; set; }

imageColor

public Color imageColor { get; set; }

image

public Image image { get; }

textElement

public Text textElement { get; }

Methods

SetContent(LabelContent labelContent)

public void SetContent(LabelContent labelContent)

SetImageSize(float size)

public void SetImageSize(float size)

SetImageSize(Vector2 size)

public void SetImageSize(Vector2 size)

SetImageSize(float width, float height)

public void SetImageSize(float width, float height)

SetTexture(Texture texture, Color tintColor)

public void SetTexture(Texture texture, Color tintColor)

SetTexture(Texture texture, float size)

public void SetTexture(Texture texture, float size)

SetTexture(Texture texture, float size, Color tintColor)

public void SetTexture(Texture texture, float size, Color tintColor)

SetTexture(Texture texture, float width, float height)

public void SetTexture(Texture texture, float width, float height)

SetTexture(Texture texture, float width, float height, Color tintColor)

public void SetTexture(Texture texture, float width, float height, Color tintColor)

SetTexture(Texture texture, Vector2 size, Color tintColor)

public void SetTexture(Texture texture, Vector2 size, Color tintColor)