大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0143 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.Movie...
来源: Laya_社区 发布时间: 20190523
...链接 提交 2 个回复 chasel 赞同来自: 蚕豆豆蚕 let event = new Laya.Event() button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button)); 2019-05-21 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 可以用自定义事件来实现你说的功能。...
来源: Laya_社区 发布时间: 20170815
...查找。我都写明了都搜索不到) layaMonkey.transform.translate( new Laya.Vector3(100,500,100)); layaMonkey.transform.position = new Laya.Vector3(100,500,100); 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180604
...p.getLayerByName("rock"); var gids = layer.getDrawSprite(5,5); var coinS = new coin(); gids.addChild(coinS); gids.x = 200; gids.y = 100; layer.addChild(gids) 还是说 我的思路本来就是错的?那如果地图上有些物体是随机出现的 怎么搞 瓦片地图的对象层最大的作...
来源: Laya_社区 发布时间: 20171008
...ypescript //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; //创建物理碰撞器 var staticCollider:PhysicsCollider = box.addComponent(PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.is...
来源: Laya2.0_文档 发布时间: 20210715
...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...
来源: Laya_社区 发布时间: 20180724
...ct01UI()相关的函数, 然后我通过代码 : var _effectN = new effect01UI(); monsterMain.HitPoint01.addChild(_effectN); 执行到new这行的时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefin...
来源: Laya_社区 发布时间: 20180122
...文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添加动画到舞台,播放动画 ```typescript //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); ```...
来源: Laya2.0_文档 发布时间: 20210715
...nt对象的文本值 上例子 var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span href='http://ask.layabox.com/'>LayaBox欢迎你的加入!</span>"; var txt:String = ""; var tTxt:String; ...
来源: Laya_社区 发布时间: 20170314
...on() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动...
来源: Laya_社区 发布时间: 20170609