大约有 473 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
Laya_社区(250) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(16)
...需要更新了,会自动给文件加版本号:res.cdn.xxx/res/a.png?v=Math.random 这种方式么,这种好像只能破坏本地缓存,无法破坏节点缓存吧? 麻烦给个详细解释,感谢!
来源: Laya_社区 发布时间: 20180209
... : 1)); if (id) { // 7.x do { var tmp:number = id % 128; var next:number = Math.floor(id / 128); if (next != 0) { tmp = tmp + 128; } buffer.writeByte(tmp); id = next; } while (id != 0); // 5.x // var len:Array = []; // len.push(id & 0x7f); // id >>= 7; // while(id > 0) // { // len.push(...
来源: Laya_社区 发布时间: 20180119
...Laya.Quaternion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0....
来源: Laya_社区 发布时间: 20171228
...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_示例 发布时间: 20240930
...数量,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_示例 发布时间: 20240930
...); 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