public void ProcGUI(Maid maid, string slotName, Material material, string propName, float margin, float fontSize, float itemHeight) { FilterParam fp = Get(maid, slotName, material, propName); if (fp != null) { fp.ProcGUI(margin, fontSize, itemHeight); } }
public void ProcGUI(Maid maid, string slotName, Material material, string propName) { // material 抽出 => texture 抽出 var tex2d = material.GetTexture(propName) as Texture2D; if (tex2d == null || string.IsNullOrEmpty(tex2d.name)) { return; } var key = CreateKey(maid.Param.status.guid, slotName, material.name, tex2d.name); FilterParam fp = filterParams.GetOrAdd(key.ToString()); fp.ProcGUI(tex2d); }