大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0064 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来...
来源: Laya_社区 发布时间: 20180525
...ya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", ...
来源: Laya_社区 发布时间: 20170828
...756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192...
来源: Laya_社区 发布时间: 20180417
...script //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ var cube:MeshSprite3D = sp.getChildAt(0) as MeshSprite3D; //获取物理碰撞器 var cubeCollider:PhysicsCollider = cube.getComponent(PhysicsCollider); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...nect to runtime process, timeout after 10000 ms - (reason: Can't attach to this target that may have Chrome DevTools attached - file:///E:/xxxxxxx/bin/index.html). 因为 我再layaari 模拟器 下面 调试了 F12后 模拟器 就会和代码断开!我重新运行 会打开多个模拟器 导致...
来源: Laya_社区 发布时间: 20170613
...onsole.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048,cache ignored 2018-08-28 添加...
来源: Laya_社区 发布时间: 20180828
...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...
来源: Laya_社区 发布时间: 20190625
...节点被添加到舞台后 onEnable(): void { let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D; console.log(a,typeof(a)) let aa = a.addComponent(Laya.Rigidbody3D); } 报错 TypeError: Cannot read properties of undefined (reading &...
来源: Laya_社区 发布时间: 20240102
... Laya.stage.setGlobalRepaint(); this.destroy(); } public static function getTextTexture(w:int, h:int):TextTexture { return new TextTexture(w, h); } 2020-11-23 0...
来源: Laya_社区 发布时间: 20190515
...用tiledmap提示undefined是为什么,是2.0以后就不支持了吗? this.tMap =new laya.map.TiledMap; 执行后直接报下面的错误。 TypeError: Cannot read property 'TiledMap' of undefined 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20181012