• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 473 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

411. dcc和cdn的问题 [ 46%]

...需要更新了,会自动给文件加版本号:res.cdn.xxx/res/a.png?v=Math.random 这种方式么,这种好像只能破坏本地缓存,无法破坏节点缓存吧? 麻烦给个详细解释,感谢!

来源: Laya_社区 发布时间: 20180209

412. socket大型项目回调 [ 46%]

... : 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

413. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 46%]

...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

414. JS进度条加载问题 [ 46%]

...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

415. 性能测试-虫子(慎入) [ 45%]

...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

416. Config3D_API3.0 [ 45%]

...数量,Z值会影响Cluster接受区域光(点光、聚光)影响的数量,Math.floor(2048 / lightClusterCount.z - 1) * 4 为每个Cluster的最大平均接受区域光数量,如果每个Cluster所接受光源影响的平均数量大于该值,则较远的Cluster会忽略其中多余的光照影响...

来源: Laya3.0_api 发布时间: 20231115

417. 性能测试-虫子(慎入) [ 45%]

...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

418. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 45%]

...); 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

419. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 44%]

...调更新方法 * 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

420. List翻页效果 [ 44%]

...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