/** 初期化。 */ public void Initialize(UnityEngine.Material a_material_raw, string a_property_name) { Tool.Assert(a_material_raw != null); //material_raw this.material_raw = a_material_raw; //property_id this.property_id = UnityEngine.Shader.PropertyToID(a_property_name); //cache_value this.cache_value = a_material_raw.GetInt(this.property_id); }
public override int GetInt(string propertyName) { return(material.GetInt(propertyName)); }