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

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

1181. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 85%]

....load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){             this.astcconfig = Laya.loader.getRes("minastc.config.json");             for(var key in this.astcconfig){                 var fileversion = Laya.ResourceVersion.manifest[key]||...

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

1182. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 85%]

...颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>=100) { //每200帧间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些特殊情况我...

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

1183. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 85%]

... 匿名用户 赞同来自:   /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state...

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

1184. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 85%]

...为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; this.audio=null; GameUI.__super.call(this); } CL...

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

1185. Animation设置pivot导致动画模糊问题 [ 85%]

...,Animation设置pivot为非整数时,动画会明显变模糊,如: this.animation.pivot(this.animation.getBounds().width / 2,this.animation.getBounds().height / 2); 如果this.animation.getBounds().width / 2为非整数,动画就会变模糊,像下面带有小数点就会模糊 this.anim...

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

1186. 运用多个缓动动画或者大的缓动,在ios上运行造成黑屏 [ 85%]

... 微博 QZONE 微信 qwer535305054 赞同来自:  Laya.timer.loop(1000, this, this.setTime); private setTime(){             this.downTime--;             Tween.to(img1, { x: randomx, y: randomy }, 250);             Tween.to(img2, { x: randomx, y: randomy }, 250);             ...

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

1187. [LayaAir3]Laya3.2.2版Spine 3.8,Spine2DRenderNode动画播放完毕后,playState返回不正确 [ 85%]

...enderNode.PAUSED   简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); 此时 this._currentPlayTime 为非零,结果就是 if (this._currentPlayTime) return Spine2DRende...

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

1188. SCALE_FIXED_WIDTH适配屏幕的问题 [ 85%]

... _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {                 //设置舞台缩放模...

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

1189. 怎么把matter物理世界的左边界和右边界连在一起 [ 85%]

...的位置,可是圆移动过去不再继续向前飞,直接自由落体,if(this.ball.position.x<1) { this.ball.position={x:790,y:this.ball.position.y} } if(this.ball.position.x>799) { this.ball.position={x:10,y:this.ball.position.y} } 请问谁有什么刚好的办法实现我需要的这个...

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

1190. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 85%]

...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...

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