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

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

211. TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling [ 55%]

...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' 添加组件PhysicsCollider 时报 Cannot...

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

212. laya.media.SoundNode [ 55%]

...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matri...

来源: laya_api 发布时间: 20170422

213. laya2.0做微信小游戏排行榜功能时报错 [ 55%]

...e = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); Laya.stage.addChild(rankSprite2); });   希望官方可以给个微信小游戏排行榜2.0的demo 附件 : --> 2019-01-15 添加评论 免费帖 --> 分...

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

214. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 55%]

...到正确位置的Texture*/ /*var spr:Sprite = new Sprite(); spr.graphics.drawTexture(tex); this.addChild(spr); spr.pos(90, 0);*/ } private function getPixel(tex:Texture):int { var pixelCount:int = 0; var arr:Array = tex.getPixels(0, 0, tex.width, tex.height); for(var i:int = 0; i < arr.length; i...

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

215. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 55%]

...相关的链接 提交 4 个回复 jiehao 赞同来自: this.btn.graphics.drawTexture(window.music.btn_on) ; this.btn.pivot(75/2 , 75/2) ; this.btn.x = window.client_width - 25 ; this.btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(2...

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

216. Laya的DrawCall问题,同一个atlas为什么会有多个draw? [ 55%]

...一个Atlas序列图,从里面取出texture,然后用sprite的graphics.drawTexture显示。为什么会有多个draw? 2016-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: canvas不...

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

217. image.skin = base64 无效 [ 55%]

...小游戏中无效 关于同为object层,层级设置无效的问题 2.0 drawTexture color参数无效 (此问题已经无效) LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 lh文件内meshSprite添加阴影属性无效 TextInput 的 type 属性设置为 number 的时候 maxChars 字数...

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

218. this.bitmap.activeResource is not a function. [ 55%]

...程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09-20 添加评论 免费帖 --> 分享 微博 Q...

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

219. 微信小游戏中iPhoneX的适配问题 [ 54%]

... ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0,...

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

220. laya.display.Sprite [ 54%]

...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node  transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Mat...

来源: laya_api 发布时间: 20170929