Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Guidance creating custom Shaders GUI...

Discussion in 'Immediate Mode GUI (IMGUI)' started by Ahab_, Mar 27, 2024.

  1. Ahab_

    Ahab_

    Joined:
    May 22, 2019
    Posts:
    62
    To start, I'm not sure if this is the right forum to post in.

    I'm currently working on shaders for both URP and HDRP, initially using Amplify for the former and Shader Graph for the latter. I'm attempting to learn how to replicate the common properties found under the Surface Options and Advanced Options in the default GUI editor when a material utilizes these shaders.

    Up to this point, redrawing my own custom properties and variables has been straightforward, mirroring what I do when creating custom Editor tools, such as foldouts, info boxes, rectangular borders, etc. However, I'm stumped on how to, for example, redraw and make functional elements like the GPU instancing toggle for it to have an actual effect on the material.

    Does anyone have any advice on this matter?

    As an aside note, Muse hasn't been particularly helpful on this topic...

    Thanks for taking the time to read this.
     
    nguyenhuuvinh2006 likes this.