升级unity6.2
This commit is contained in:
@@ -240,7 +240,7 @@ class VolundMultiStandardShaderGUI : ShaderGUI
|
||||
bool ImmediateProperty(string name, MaterialEditor materialEditor, MaterialProperty[] props) {
|
||||
EditorGUI.BeginChangeCheck();
|
||||
var p = FindProperty(name, props);
|
||||
if(p.type == MaterialProperty.PropType.Texture)
|
||||
if(p.propertyType == UnityEngine.Rendering.ShaderPropertyType.Texture)
|
||||
materialEditor.TexturePropertySingleLine(new GUIContent(p.displayName), p);
|
||||
else
|
||||
materialEditor.ShaderProperty(p, p.displayName);
|
||||
|
||||
Reference in New Issue
Block a user