Example #1
0
        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);
                    }
                }
            }
        }
Example #2
0
        public IDictionary <string, string> GetDetails()
        {
            var dict = PBUtility.ParseProperties(RawData.AllFields, "gb2312");

            dict["ProductClass"] = ProductClass;

            return(dict);
        }
Example #3
0
        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);
            }
        }