protected void SetKeywordInternal(MaterialProperty prop, bool on, string defaultKeywordSuffix)
{
string keyword = !string.IsNullOrEmpty(this.keyword) ? this.keyword : (prop.name.ToUpperInvariant() + defaultKeywordSuffix);
foreach (Material material in prop.targets)
{
if (on)
{
material.EnableKeyword(keyword);
}
else
{
material.DisableKeyword(keyword);
}
}
}
}