Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    5,222
    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".
     
unityunity