大约有 481 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
Laya_社区(255) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...ld(progressBar); onchange(); } function onChange(value) { trace("进度: "+Math.floor(value*100)+"%"); } function onProgress(pro) { trace("加载了总文件的:"+pro+"%") progressBar.value=pro; if(progressBar.value==1) { progressBar.value=1; } } }() 他那个回调函数 值我具体应该new谁怎...
来源: Laya_社区 发布时间: 20170701
...ls.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.maths.Rectangle; import laya.webgl.WebGL; public class PerformanceTest_Maggots { private var texturePath:String = "../../../../res/tinyMaggot.png"; private var padding:int = 100; private var maggotAmount:int = 5000; private v...
来源: Laya_示例 发布时间: 20251209
...数量,Z值会影响Cluster接受区域光(点光、聚光)影响的数量,Math.floor(2048 / lightClusterCount.z - 1) * 4 为每个Cluster的最大平均接受区域光数量,如果每个Cluster所接受光源影响的平均数量大于该值,则较远的Cluster会忽略其中多余的光照影响...
来源: Laya3.0_api 发布时间: 20231115
...ls.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.maths.Rectangle; import laya.webgl.WebGL; public class PerformanceTest_Maggots { private var texturePath:String = "../../res/tinyMaggot.png"; private var padding:int = 100; private var maggotAmount:int = 5000; private var tic...
来源: Laya2.0_示例 发布时间: 20251209
...); var texture2D:Texture2D = new Texture2D(); texture2D["onAsynLoaded"](""+Math.random(),texture.bitmap); createTextureCallBack.call(callbackThis,texture2D); }3. 最终的调用: public function init(){ var s:sprite = create_a_big_sprite(); Laya.timer.once(250,this,function():void{ GameUtil.create...
来源: Laya_社区 发布时间: 20170718
...调更新方法 * txt 缓动对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回...
来源: Laya2.0_文档 发布时间: 20210715
...age = this.list_rule.scrollBar.max / this.list_rule.totalPage; let index = Math.floor(value / page) if (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } e...
来源: Laya_社区 发布时间: 20171202
...f(Laya.KeyBoardManager.hasKeyDown(87)) //'w' { Matter.Body.setAngle(partA, Math.PI/6); } }; 注意,不要在创建comp的时候立刻对comp调用setAngle。 问题分析: 查看LayaRender.Body渲染函数发现,Body的渲染只是渲染body自己,并没有对所有part进...
来源: Laya_社区 发布时间: 20180625
...age = this.list_rule.scrollBar.max / this.list_rule.totalPage; let index = Math.floor(value / page) if (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } e...
来源: Laya_社区 发布时间: 20181112
... p2=下.parent.localToGlobal(下x,下.y), 2、中间起始坐标 = p1.y + Math.abs(p2.y - p1.y)/2; 2018-05-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 HumbleDust 相关问题 发起问题须知,必看...
来源: Laya_社区 发布时间: 20180502