打包流程
This commit is contained in:
1 parent
0ca50e67a5
commit
6ab7e391ac
19 files changed
+1168
-120
No files matched your search
@@ -199,12 +199,12 @@ public class CustomDataChannel : MaterialPropertyDrawer
|
||||
}
|
||||
|
||||
Shader shader = material.shader;
|
||||
int count = ShaderUtil.GetPropertyCount(shader);
|
||||
int count = shader.GetPropertyCount();
|
||||
var owners = new System.Collections.Generic.List<string>();
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
string name = ShaderUtil.GetPropertyName(shader, i);
|
||||
string name = shader.GetPropertyName(i);
|
||||
if (name == prop.name || !name.Contains("CustomChannel"))
|
||||
{
|
||||
continue;
|
||||
@@ -214,7 +214,7 @@ public class CustomDataChannel : MaterialPropertyDrawer
|
||||
continue;
|
||||
}
|
||||
|
||||
string description = ShaderUtil.GetPropertyDescription(shader, i);
|
||||
string description = shader.GetPropertyDescription(i);
|
||||
owners.Add(string.IsNullOrEmpty(description) ? name : description);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user