GetShaderErrors() private method

private GetShaderErrors ( Shader s ) : UnityEditor.ShaderError[]
s UnityEngine.Shader
return UnityEditor.ShaderError[]
 private void ShowShaderErrors(Shader s)
 {
     if (ShaderUtil.GetShaderErrorCount(s) < 1)
     {
         return;
     }
     ShaderInspector.ShaderErrorListUI((UnityEngine.Object)s, ShaderUtil.GetShaderErrors(s), ref this.m_ScrollPosition);
 }
        private void ShowShaderErrors(Shader s)
        {
            int shaderErrorCount = ShaderUtil.GetShaderErrorCount(s);

            if (shaderErrorCount >= 1)
            {
                ShaderInspector.ShaderErrorListUI(s, ShaderUtil.GetShaderErrors(s), ref this.m_ScrollPosition);
            }
        }
Beispiel #3
0
        private void ShowShaderErrors(Shader s)
        {
            int n = ShaderUtil.GetShaderErrorCount(s);

            if (n < 1)
            {
                return;
            }
            ShaderErrorListUI(s, ShaderUtil.GetShaderErrors(s), ref m_ScrollPosition);
        }