public void ApplyMaterial(Material material, Camera camera, Vector3 mousePosition) { IMeshEditor editor = GetEditor(); if (editor != null) { MeshSelection selection = editor.GetSelection(); ApplyMaterialResult result = m_materialEditor.ApplyMaterial(material, selection, camera, mousePosition); RecordApplyMaterialResult(result); } else { GameObject gameObject = PBUtility.PickObject(camera, mousePosition); if (gameObject != null) { if (m_rte.Selection.IsSelected(gameObject)) { ApplyMaterialToSelectedGameObjects(material); } else { ApplyMaterialResult result = m_materialEditor.ApplyMaterial(material, gameObject); RecordApplyMaterialResult(result); } } } }
public IDictionary <string, string> GetDetails() { var dict = PBUtility.ParseProperties(RawData.AllFields, "gb2312"); dict["ProductClass"] = ProductClass; return(dict); }
public void Update(PBMsgQueryRspFund rsp) { RawData = rsp; AccountID = RawData.AccountID; Values.Clear(); var dict = PBUtility.ParseProperties(rsp.AllFields, "gb2312"); foreach (var keyvalue in dict) { Values.Add(keyvalue); } }