大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
..."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
... "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
...查了一下,也就一个地方,用到,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 on...
来源: Laya_社区 发布时间: 20200612
代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 附件 : --> 2017-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20171013
新建项目警告this class[MiniAdpter] already exist: Object {init: } 附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qweouyang1990 赞同来自: 明白了,正常提示,有点蛋疼 2...
来源: Laya_社区 发布时间: 20180331
...源异步加载是否完成的事件? 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
...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
...on3D&name=AnimationLayerBlend))。 ```typescript //正常的动画播放 this.animator.play(this.motions[this.motionIndex], 0); //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引,没有使用混合模式,仅仅是使用0层的动...
来源: Laya2.0_文档 发布时间: 20210714
...on3D&name=AnimationLayerBlend))。 ```typescript //正常的动画播放 this.animator.play(this.motions[this.motionIndex], 0); //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引,没有使用混合模式,仅仅是使用0层的动...
来源: Laya2.0_文档 发布时间: 20210714