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

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

public AddTextureNoOffset ( GUIFont, font, Texture2D texture, DialoguePosition, dp ) : Texture2D
font GUIFont,
texture UnityEngine.Texture2D
dp DialoguePosition,
Результат UnityEngine.Texture2D
    public Texture2D AddTextureNoOffset(GUIFont font, Texture2D texture, DialoguePosition dp)
    {
        if(this.content.image != null)
        {
            Texture2D tex = this.content.image as Texture2D;
            Rect b = new Rect(this.bounds.x, this.bounds.y, this.bounds.width, this.bounds.height);
            b.x += dp.boxPadding.x;
            b.y = texture.height-b.y-b.height;
            texture = TextureDrawer.AddTexture(texture, b, tex.GetPixels());
        }
        else texture = font.AddTextTexture(texture, this, 0, Vector2.zero, dp.showShadow, dp.shadowOffset);
        return texture;
    }