- 博客(105)
- 资源 (5)
- 收藏
- 关注
原创 【UI Texture】Texture导入unity设置
1-自动设置成二次幂,否则影响压缩格式2-去除mip map 选项,一般也不用勾选read/write3- 有时候美术给的图片就是非二次幂的。使用Texture时会变形。在UiTexture组件上设置图片大小。比如图片原来是1000 x 606.,放到Unity自动改成1024 x 512,那么为了保证图片显示正常,uitexture修改成原图的分辨率大小。...
2019-02-15 15:11:54
916
原创 [B]部分机型存在键盘输入框打出的字体为白色
一些博客说使用Unity自己生成的Style(UnityThemeSelector) 最后解决: 删除manifest.xml 中的 style设定
2018-06-21 15:48:50
884
原创 Duplicate files at the same path inside the APK 问题
更换项目jar包,由于原工程是Eclipse,而我使用的是AndroidStudio打包,替换jar后build报错:原因使用AS转换Eclipse工程后,工程依赖会改变。解决方案:1-保持Eclipse(Ant)打包 2-手动替换jar包里的.class文件...
2018-05-16 18:19:06
1082
1
原创 点击地面不能移动/FunctionObject Layer层点击事件问题
如题在NYJJH项目中,点击地面无法移动,而且捕获不到鼠标点击事件,最后发现是场景里 存在UIRoot导致。原理不详。项目中使用的NGUI是大神自定义过的,场景里有UIRoot则会导致捕获不到点击问题,特此记录....
2018-05-14 22:15:21
379
转载 Salesforce Lightning 自定义分页table
http://sfdcmonkey.com/2017/01/26/display-record-with-pager-buttons-lightning-component/
2018-03-12 17:23:02
724
原创 Salesforce Lightning 使用lightning:dualListbox报错“Can not read property 'xxx' of undefined”
https://salesforce.stackexchange.com/questions/210323/lightningduallistbox-error-in-spring-18?noredirect=1#comment317091_210323原因是lightning:dualListbox控件需要写全”label”, “sourceLabel”, “selectedLabe...
2018-03-05 22:37:03
590
原创 Salesforce Lightning Winter 18 发布的五个控件
https://automationchampion.com/2017/09/04/top-5-lightning-component-gems-of-salesforce-winter18-release/
2018-03-05 17:01:17
487
原创 Salesforce 找出String中所有符合条件的SubString
参考: https://iwritecrappycode.wordpress.com/2012/06/29/extracting-strings-with-regex-in-salesforce-apex/Pattern p = Pattern.compile('\\{([^}]*)\\}'); //带括号// Pattern p = Pattern.compile('(?i...
2018-03-02 11:43:44
678
原创 Salesforce 将String拆分成Char并且替换字符
参考 https://salesforce.stackexchange.com/questions/14987/coverting-a-string-to-array-of-characters// splitting on empty gives you an array of the string's "chars":String source = 'foo bar';Str...
2018-03-02 11:02:54
822
原创 Salesforce Visualforce页面传递JS变量给Controller
参考: https://salesforce.stackexchange.com/questions/24666/how-to-pass-javascript-value-to-controller例如public with sharing class RoseRichEditorController { //html内容 public String tex...
2018-03-02 10:59:47
1268
原创 Salesforce Rest接口返回值用Json序列化存在反斜杠
https://developer.salesforce.com/forums/?id=906F0000000fxruIAA如果接口返回值为JSON.serialize(object),则返回json会带’/’.例如"[{\"City\":\"New York\"}]解决方案:使用RestContext,response返回值RestContext.resp...
2018-02-28 17:37:36
923
原创 Salesforce-Demo:自定义Rest接口在Postman测试
1.自定义接口/********************************************************************** * * Rose * 2018年2月27日09:58:00 * * @url: /services/apexrest/rest * @data: * { }*************************...
2018-02-27 14:19:43
1734
转载 Salesforce 自定义Rest接口并在Postman测试
自定义接口: https://trailhead.salesforce.com/en/modules/apex_integration_services/units/apex_integration_webservicesPOSTMAN测试 http://amitsalesforce.blogspot.com/2017/06/test-salesforce-api-by-po...
2018-02-27 10:45:10
1189
原创 Salesforce Lightning 组件间的交互
Application事件: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_application_example.htmComponent事件: https://developer.salesforce.com/docs/atlas.en-us.lightn...
2018-02-26 17:19:21
1006
原创 Salesforce Lightning 在JS controller中调用另一个JS方法
1.使用Helper将需要封装重复调用的方法封装在helper中,通过helper.functionName调用。2.直接在JS Controller内部调用var a = component.get('c.functionName');$A.enqueueAction(a);...
2018-02-24 13:49:12
1190
原创 Salesforce Apex 获取对象的所有字段并获取字段详情
获取所有字段SObjectType esalesTemp = Schema.getGlobalDescribe().get('EsalesTemp__c');Map<String,Schema.SObjectField> mfields = esalesTemp.getDescribe().fields.getMap();for (String s: mfields.keyS...
2018-02-08 17:17:12
2801
转载 Salesforce Lightning 使用 SVG
1-自定义控件 原文:https://my.oschina.net/SpringZhang/blog/16140422-![CDATA标记为纯文本,在afterRender中控制 原文:https://salesforce.stackexchange.com/questions/77459/including-svg-in-a-lightning-component...
2018-02-08 14:29:06
505
原创 Salesforce 进程生成器创建计划操作注意事项
原文:https://salesforce.stackexchange.com/questions/65734/how-to-add-time-dependent-actions-in-lightning-process-builderScheduled actions are only available in two cases.On the object node, the ...
2018-02-07 22:19:45
592
2
转载 salesforce中常用技能总结(纯粹干货,深度积累)图解
http://blog.csdn.net/itsme_web/article/details/53976204
2018-02-04 14:04:22
1106
原创 Salesforce Lightning 动态初始化选项列表
1.通过集合初始化方式component中声明一个属性,并在选项列表控件使用"departs1" type="Department__c[]" />lightning:select aura:id="D1" label="事业部" class="dynamic" value="{!v.d1Selected}" onchange="{!c.d1Change}">
2018-02-04 13:39:03
1039
原创 Salesforce Lightning Handler的各种事件监听
1.初始化事件"init" value="{!this}" action="{!c.doInit}" />2.监听Atrribute变化"selectedDepartId" type="Id"/>"change" value="{!v.selectedDepartId}" action="{!c.departmentChange}" />3.接收事件aura:reg
2018-02-04 13:27:56
744
原创 Salesforce Lightning 重写lightning的View操作报错
如题。报错信息如下: There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was “Large is not a supported form factor.”.原因是该对象已经通过Li
2018-01-30 15:39:02
585
原创 Salesforce Lightning 修改后不立即生效
原文:https://my.oschina.net/SpringZhang/blog/1603469安全性控制==>启用安全持久的浏览器缓存以提高性能 的勾去掉在开发环境中便于调试,将勾去掉,在正式环境中勾选上,将资源缓存提高性能
2018-01-27 13:25:34
521
原创 Salesforce CBU/EBU/SMB 的意义
原文: https://success.salesforce.com/answers?id=9063A000000pLFcQAM https://www.salesforce.com/blog/2015/01/what-is-an-smb.html商业业务部(CBU) 这是Salesforce Account Executive的主要销售地点,重点在三个方面: 小型企业(1
2018-01-19 12:48:15
2668
原创 女儿红和花雕酒的区别
相传,传统习俗生了女儿就要酿一坛老酒埋在桂树下,等到十八岁女儿出嫁挖出来招待宾客,即为“女儿红”,但如果女儿不幸中途夭折,这时候挖出来的酒就是花雕了,花雕=花凋。
2017-12-31 18:27:56
3599
2
原创 为什么是MerryChristmas不是HappyChristmas?
https://www.jianshu.com/p/b7972bae2338话说今天是2017年12月25日,从进入12月起帝都的街头就开始有了圣诞的气氛,打昨天起更是在街上碰到了形态各异的圣诞……小青年….其中一个瘦到不行,诺妈曰:这个可能是从饥荒年代穿越而来的吧~虽然形态各异,但,所有所有的圣诞大咖们都会用跟你讲一句:Merry Christmas!记得在英国时候圣诞节期间彼此会说happy
2017-12-25 17:31:21
1493
1
原创 Salesforce--页面使用千分符
http://blog.csdn.net/woshizoe/article/details/46461991如果是OutputField,修改成OutputText<apex:outputText value="{0, number, ###,##0.00}">//根据需要调整0.00还是0 <apex:param value="{!num.spi.Potential__c}"></ape
2017-12-21 15:37:19
490
原创 Salesforce -- 自定义按钮弹出VisualForce页面,页面关闭后刷新原页面
1.自定义按钮JS://打开新页面/窗口var new_window = window.open('/apex/RelationUnitBuSetPage?rucId={!Relation_Unit__c.Id}'); //循环检测窗口是否关闭 var loop = setInterval(function() { //如果新窗口关闭了,刷新原来的页面
2017-12-04 10:08:31
2749
原创 Salesforce -- Apex发送电子邮件
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setSubject('商机新建项目联系人报错信息'); mail.setHtmlBody('\n\n--------- '+e.getStackTraceString()+':'+e.getMess
2017-12-04 09:35:41
2619
原创 Salesforce -- VisualForce页面显示错误/警告等信息
1.Visualforce页面添加标签 :<apex:pageMessages/>2.需要报错的地方使用:ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, '已包含相同聚焦客户的关联单位,无法重复添加!'));
2017-12-04 09:29:19
1946
原创 Salesforce -- 自定义放大镜查找界面
如图,重写放大镜的查找界面VisualForce:<script type="text/javascript"> function getObjectPrefix(objectName) { sforce.connection.sessionId = '{!$Api.Session_ID}'; var KeyPrefixValue = sforce.connec
2017-12-04 09:22:39
690
原创 Salesforce -- 代码控制记录共享
JS:var objSharing = new sforce.SObject("objname__share");//here you have to supply the name of the sharing object corresponding to that object for which you want to share the record. objSharing.Parent
2017-11-30 19:47:07
799
原创 Salesforce - Apex中设置记录类型RecordType
原文链接:https://salesforce.stackexchange.com/questions/141098/how-to-set-record-type-of-records-while-saving-the-recordsId recordTypeId = Schema.SObjectType.OBJECT_NAME.getRecordTypeInfosByName()
2017-11-27 14:08:55
1862
原创 Salesforce - Visualforce必填字段展示
原文链接: https://salesforce.stackexchange.com/questions/5462/required-field-mark-red-vertical-bar-not-coming<apex:pageBlock > <apex:pageBlockSection> <apex:pageBlockSectionItem> <
2017-11-25 14:45:50
985
原创 Salesforce-在代码调用审批流
//发起子商机申请审批{!REQUIRESCRIPT("/soap/ajax/40.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/40.0/apex.js")} var ruc = new sforce.SObject("Relation_Unit__c"); ruc.id ='{!Relation_Unit__c.Id}';var resu
2017-11-25 12:54:22
1518
原创 Unity3D-使用图层,锁定背景图片
如题,添加场景背景图片,需要锁定背景图片,防止对背景进行误操作。1.选中背景图片,选择属性中的Layer,添加一个自定义图层。 2.切换background背景图的layer为刚刚新建的。然后锁定新建的图层,防止在Scene布局中选中。这样在游戏编辑界面就无法选中背景图片了,防止背景被误操作移动和修改。但还是可以通过Hierarchy选中背景图片。
2017-11-20 19:33:34
2814
原创 Salesforce Lightning {!expression}和{#expression}的区别
{#expression} (Unbound Expressions) Data updates behave as you would expect in JavaScript. Primitives, such as String , are passed by value, and data updates for the expression in the parent and chi
2017-11-20 11:26:26
451
原创 Salesforce-在VisualForce页面的JS中使用Controller的对象集合
如题。- Controller:public with sharing class BaiduMapController { //业务人员(需要转化成Json传给page使用) public String salesListJson {get;set;} public List<Salesman__c> salesList {get;set;} public BaiduM
2017-11-17 17:13:44
1082
原创 Unity3D-CDK兑换模拟
模拟兑换CDK,重点为给按钮添加自定义事件处理方法,结果图为:1.新建两个UI , InputField用作输入框,Button用于按钮点击处理兑换流程。修改字体文本等。2.新建C#脚本,自定义一个方法,用于写领取cdk流程。将这个脚本拖入到Button按钮中3.在Button右侧找到On Click属性,添加一个OnClick处理,选择要点击的按钮拖入到onclick中,右侧选择自己刚刚新建的脚本
2017-11-09 20:33:22
1395
Python网络数据采集pdf版
2017-09-20
GitHub组件学习BottomBar
2016-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人