Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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,650
    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,074