public TextureProperty ( |
||
prop | ||
label | string | |
Résultat |
public Texture TextureProperty(MaterialProperty prop, string label)
{
bool scaleOffset = (prop.flags & MaterialProperty.PropFlags.NoScaleOffset) == MaterialProperty.PropFlags.None;
return this.TextureProperty(prop, label, scaleOffset);
}
MaterialEditor::TextureProperty ( |
|
MaterialEditor::TextureProperty ( |
|
MaterialEditor::TextureProperty ( |
|
MaterialEditor::TextureProperty ( |
|
MaterialEditor::TextureProperty ( string propertyName, string label, |
|
MaterialEditor::TextureProperty ( string propertyName, string label, |
public void ShaderPropertiesGUI(Material material) { EditorGUI.BeginChangeCheck(); { m_MaterialEditor.TextureProperty(mainTex, "Texture Main"); m_MaterialEditor.TextureProperty(alphaTex, "Alpha"); } if (EditorGUI.EndChangeCheck()) { MaterialChanged(m_material); } }