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

大约有 35 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0027 秒)

21. 关闭指定定时器timer [ 62%]

...动变量变化 function roundTurnChange(type){ //减速阶段 roundTurn-=0.05; if(roundTurn<=0.3){ console.log("*************************************************88"); Laya.timer.clear(this.tlate,round); } return roundTurn; } 匿名用户 • 2018-08-11 15:41 Laya.timer.clear(this,round...

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

22. ProgressBar 代码问题 [ 61%]

...dingBar.value = 0;        }             this.loadingBar.value += 0.05;        }        onChange(value: number): void {             console.log("进度:" + Math.floor(value * 100) + "%");         } } 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

23. 挂载物体的3D变换问题 [ 61%]

...上角色后啥都没变化 var cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = n...

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

24. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 59%]

... { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```

来源: Laya2.0_文档 发布时间: 20210715

25. 请问怎么制作一个layabox js版本的加载效果 [ 58%]

...e.destroy(); Laya.stage.addChild(new gamelistUI()); } progressBar.value += 0.05; // this.removeSelf(); // } // function onChange(value) // { // if(value>=100){ // } // } // return Loadings; })(laya.loadingUI);   2018-01-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

26. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 58%]

...gressBar.value >= 1) this.progressBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```

来源: Laya2.0_文档 发布时间: 20210715

27. 物理引擎-Slingshot [ 57%]

...stic = Matter.Constraint.create( { pointA: anchor, bodyB: rock, stiffness: 0.05, render: { lineWidth: 5, strokeStyle: '#dfa417' } }); var pyramid = Matter.Composites.pyramid(500, 300, 9, 10, 0, 0, function(x, y, column) { var texture = column % 2 === 0 ? '../../res/physics/img/block.png' : '../../re...

来源: Laya_示例 发布时间: 20251209

28. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...5% if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } /***进度条数据改变回调***/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```

来源: Laya2.0_文档 发布时间: 20210715

29. 最新版本碰到的bug [ 56%]

...码中,摄像机移动使用的是 this.camera.transform.localPositionZ+=0.05;向局部坐标系的z轴正方向移动,这行代码的效果应该是离物体越来越近了,根据您代码里设置的范围来看是正常的,我这里改成"-="后坐标位置也显示正常。 第二个bug...

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

30. 求助 Uncaught SyntaxError: Unexpected identifier [ 53%]

...实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new StandardMaterial(); material.albedo = new Vector4(0, 0, 0, 1); sphere.meshRender.material = material; sphere.transform.position = new Vector3(0, 0, 0); //模拟x轴,其实...

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