UnityEditor.SpriteRendererEditor.CheckForErrors C# (CSharp) Method

CheckForErrors() private method

private CheckForErrors ( ) : void
return void
        private void CheckForErrors()
        {
            bool flag;
            if (this.IsMaterialTextureAtlasConflict())
            {
                ShowError("Material has CanUseSpriteAtlas=False tag. Sprite texture has atlasHint set. Rendering artifacts possible.");
            }
            if (!this.DoesMaterialHaveSpriteTexture(out flag))
            {
                ShowError("Material does not have a _MainTex texture property. It is required for SpriteRenderer.");
            }
            else if (flag)
            {
                ShowError("Material texture property _MainTex has offset/scale set. It is incompatible with SpriteRenderer.");
            }
        }