LabelContent.LabelContent C# (CSharp) Метод

LabelContent() публичный Метод

public LabelContent ( GUIContent c, float x, float y, Color t, Color s, GUIFont, font ) : UnityEngine
c GUIContent
x float
y float
t Color
s Color
font GUIFont,
Результат UnityEngine
    public LabelContent(GUIContent c, float x, float y, Color t, Color s, GUIFont font)
    {
        this.content = c;
        this.textColor = t;
        this.shadowColor = s;

        Vector2 size;
        if(this.content.image != null)
        {
            size = new Vector2(this.content.image.width, this.content.image.height);
        }
        else
        {
            size = font.GetTextSize(this.content.text);
        }
        this.bounds = new Rect(x, y, size.x, size.y);
    }

Same methods

LabelContent::LabelContent ( GUIContent c, Rect b, Color t, Color s ) : UnityEngine