大约有 443 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0046 秒)
Laya_社区(240) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(13) Laya2.0_示例(7) Laya3.0_文档(3) Laya_示例(2)
...r: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read property 'events' of undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor Uncaught TypeError: GlowFi...
来源: Laya_社区 发布时间: 20190418
...e:Texture=new Texture(htmlCanvas); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); sp.x=200; } } } 2017-07-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Funkyfun 相关问题 两个...
来源: Laya_社区 发布时间: 20170704
....clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture.sourceHeight _this.scaleY = _this...
来源: Laya_社区 发布时间: 20180530
...什么,添加到舞台上?添加到舞台上可以用sprite.graphics.drawTexture,你传一个文理texture就可以显示到舞台上!如果回答的不对,你可以继续追问! 2017-02-16 0 3 分享 微博 QZONE 微信 157*****121 赞同来自: 都不知道你在问什么,描述清楚...
来源: Laya_社区 发布时间: 20170216
... Sprite().pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * * var...
来源: Laya_社区 发布时间: 20180826
...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matri...
来源: laya_api 发布时间: 20170422
... var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texEnd,240,230,120,120) Laya.stage.addChild(sp); } } } 3、最终效果 2016-05-06 0 0 分享 微博 QZONE 微信 anghuo 赞同来自: 不错 不错!学习了 不错 ...
来源: Laya_社区 发布时间: 20160506
...g)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白屏 2018-08-08 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20180808
... var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(0, 0); })); 业务: 图片服务器会修改上传新的图片,图片的文件名不变 流程: 我清理...
来源: Laya_社区 发布时间: 20170831
...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matri...
来源: laya_api 发布时间: 20170929