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

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

21. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 77%]

...void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在是顺时针,如果逆时针旋转 Math.abs(Math...

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

22. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 73%]

..._path_radians = Math.PI / 180 * this._path_angle ; this._tail_pos.x = Math.floor( this._head_pos.x + this._path_length * Math.cos( this._path_radians ) ); this._tail_pos.y = Math.floor( this._head_pos.y + this._path_length * Math.sin( this._path_radians ) );  // // 确保路径的终点不能超出...

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

23. UI-ProgressBar [ 73%]

...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: Pr...

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

24. Unity 3D 模型的中心点 [ 72%]

...位。   旋转代码:  var _rotateLeft = new Laya.Vector3(0, 1, 0); floor.transform.rotate(_rotateLeft, true, false); 或者 floor.transform.rotate(_rotateLeft, false, false); 2018-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

25. UI-ProgressBar [ 72%]

...gressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { priva...

来源: Laya2.0_示例 发布时间: 20260303

26. 我用的HBox做的进度条为啥总是一闪一闪的。 [ 68%]

...啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFont(valu...

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

27. ios旋转问题 [ 68%]

...width != 640) { var ratio:Number = width / 640; width = 640; height = Math.floor(height / ratio); } if (height > 1280) height = 1280; else if (height < 960) height = 960;*/ var browerRatio:Number = width / height ; if( height != 1136 ) { // w 640 // h 1136 var ratioW:Number = height / 1136 ; h...

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

28. 3D中的Animator如何从指定的某一帧开始播放动画 [ 68%]

...val:int = 1 / animator.cacheFrameRate; //总帧数 var endFrame:int = Math.floor(maxTime / frameInterval); //计算开始帧 var startFrame:int = Math.floor(endFrame * (1 - percent)); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); anima...

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

29. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 65%]

...ansform.rotate(new Vector3(-30, 0, 0), true, false);   //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // ...

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

30. 大神们能不能帮忙解决一下一些问题呀,一个新手搞不定呀 [ 65%]

...的关数 = [1,2,3,4,5,6,7]; if(第一关过关了){ var 随机数 = Math.floor(Math.random() * 未过的关数.length; var 新的未过的关数 = []; var 剩下关数 = 未过的关数.length - 1; for(var i =0;i<剩下关数;i++){ if(i != 随机数){ 新的未过的关数.push(未过的关数[i...

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