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

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

921. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 88%]

...uper(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.ro...

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

922. UI-Tree [ 88%]

..."render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的...

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

923. 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_示例 发布时间: 20260303

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

925. 代码定义动画剪辑播放报错 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

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

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

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

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

928. 使用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

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

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

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

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

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

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