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

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

911. UI-Tree [ 88%]

... "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const Utils = Laya.Utils, Tree = Laya.Tree; // 组装tree的数据 let treeData = ""; for (let i = 0; i "; for (let j = 0; j "; } treeData += ""; } treeData += ""; // 解析tr...

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

912. Cannot read property 'offCanplay' of null [ 88%]

...查了一下,也就一个地方,用到,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 on...

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

913. 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another [ 88%]

代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 附件 : --> 2017-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

914. 新建项目警告this class[MiniAdpter] already exist: Object {init: } [ 88%]

新建项目警告this class[MiniAdpter] already exist: Object {init: } 附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qweouyang1990 赞同来自: 明白了,正常提示,有点蛋疼 2...

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

915. loadScene()如何获取到资源异步加载是否完成的事件? [ 88%]

...源异步加载是否完成的事件? protected onCreate(): Laya.View { this.RootPanel = new ui.test.gameLayerUI(); console.log(this.RootPanel.my_laya.width); // this.RootPanel.on(Laya.Event.RENDER,this,this.bindEvent); return this.RootPanel; }说明:这是一个框架下用来创建界面的cre...

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

916. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 88%]

...hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroType; if(!Role.cacheAs) { Role.cacheAs = true; //缓存飞机飞行动画 Animation.createFrames(["war/hero...

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

917. 动画过渡融合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 88%]

...on3D&name=AnimationLayerBlend))。 ```typescript //正常的动画播放 this.animator.play(this.motions[this.motionIndex], 0); //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引,没有使用混合模式,仅仅是使用0层的动...

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

918. 动画过渡融合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 88%]

...on3D&name=AnimationLayerBlend))。 ```typescript //正常的动画播放 this.animator.play(this.motions[this.motionIndex], 0); //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引,没有使用混合模式,仅仅是使用0层的动...

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

919. 有关于HTMLDivElement文本布局的问题 [ 88%]

...t;font color="#50d337"><a name='keyword' href='#javascript' onClick='this.pic()'>恶魔</a><a name='keyword' href='#javascript' onClick='this.pic()'><font color="#65e2ff">力量</font></a>、<a name='keyword' href='#javascript' onClick='this.pic()'><fo...

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

920. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 88%]

...33用户 赞同来自: let out = window.app.fcUtil.worldToViewportPoint(this.owner.transform.position, window.GameMag.Camera1); this.hpNode.x = out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui   //3...

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