Search Unity

Feedback Extend ShaderUtil API (GetShaderInfo)

Discussion in 'Editor & General Support' started by Peter77, Apr 3, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,609
    ShaderUtil contains the ShaderUtil.GetAllShaderInfo() method.

    I would like to be able to get the ShaderInfo for a specific shader only, method signature like:
    Code (CSharp):
    1. ShaderInfo ShaderUtil.GetShaderInfo(Shader shader)
    Additionally, I would find it very useful if you could also add "hasWarnings" property to the ShaderInfo struct. At the moment, it contains "hasErrors", but not "hasWarnings".
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014