大约有 368 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)
Laya_社区(167) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya2.0_示例(6) Laya3.0_文档(3) Laya_示例(2)
....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
...hild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.sc...
来源: Laya_社区 发布时间: 20171220
...内容相关的链接 提交 1 个回复 wudi199553 赞同来自: graphics.drawTexture,也可以使用loadImage 2017-12-12 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 HummerMan 相关问题 请问LayaAir中如何使图片以圆形...
来源: Laya_社区 发布时间: 20171212
... Image(); var texture = Laya.loader.getRes(heroidstr); m_herohead.graphics.drawTexture(texture); m_herohead.anchorX = 0.5; m_herohead.anchorY = 1; m_herohead.pos(m_heroPosX,m_heroPosY); m_mapbg.addChild(m_herohead); 我在代码里创建图片,可是设置锚点后,显示还是0,0没有...
来源: Laya_社区 发布时间: 20171109
...台。 var texture:Texture = new Texture(htmlCanvas); Laya.stage.graphics.drawTexture(texture, 0, 0, 100, 100); 2016-10-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Charles 相关问题 骨骼动画播放完后的回调时间 谷歌...
来源: Laya_社区 发布时间: 20161020
...d预加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第80个头像的时候,内存显示稳定在29M 但是当添加第81个SPRITE头像...
来源: Laya_社区 发布时间: 20161107
... 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
... Laya.stage.addChild(title); title.graphics.drawTexture(Laya.loader.getRes("res/mainpage/title.png")); var titleT:Texture = Laya.loader.getRes("res/mainpage/title.png"); if(titleT==null){ t...
来源: Laya_社区 发布时间: 20171001
...orTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr);...
来源: Laya_社区 发布时间: 20180302
...,会有绘制效率上的差别吗? 如何获取Sprite上用graphics.drawTexture绘制的texture? 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 如何清除sharedCanvas上一次绘制的内容 Ctrl + 单击以跟踪链接 怎么可以打开到新...
来源: Laya_社区 发布时间: 20180201