コード例 #1
0
        ////////////////////////////////////
        // Drawing Functions              //
        ////////////////////////////////////
        #region DrawingFunctions

        internal void DrawShaderGraphProperties(Material material, IEnumerable <MaterialProperty> properties)
        {
            if (properties == null)
            {
                return;
            }

            ShaderGraphPropertyDrawers.DrawShaderGraphGUI(materialEditor, properties);
        }
コード例 #2
0
ファイル: BaseShaderGUI.cs プロジェクト: vault51/Graphics
        static void DrawShaderGraphProperties(MaterialEditor materialEditor, Material material, MaterialProperty[] properties)
        {
            if (properties == null)
            {
                return;
            }

            ShaderGraphPropertyDrawers.DrawShaderGraphGUI(materialEditor, properties);
        }
コード例 #3
0
 /// <summary>
 /// Draws the material properties.
 /// </summary>
 /// <param name="properties">List of Material Properties to draw</param>
 protected void PropertiesDefaultGUI(MaterialProperty[] properties)
 {
     ShaderGraphPropertyDrawers.DrawShaderGraphGUI(materialEditor, properties);
 }
コード例 #4
0
 public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
 {
     ShaderGraphPropertyDrawers.DrawShaderGraphGUI(materialEditor, props);
 }