protected virtual void InitializePropertiesIfNeeded() { if (Properties != null) { return; } Properties = new MaterialProperties(GetComponent <MeshRenderer>()); PrepareProperties(Properties); Properties.Apply(); }
public bool ApplyProperties() { return(Properties.Apply()); }