大约有 1,142 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(993) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) laya_api(4) Laya3.0_文档(4) Laya2.0_api(4)
...为透明 新建View及背景图片自适应大小如何设置 如何清除graphics绘制的矢量图 ios 背景音乐需要手动点一下屏幕才能播放 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, webgl 绘制graphics出报错 问题状态 最新...
来源: Laya_社区 发布时间: 20180312
...anRead(): boolean Inherited from VertexBuffer3D.canRead Defined in laya/d3/graphics/VertexBuffer3D.ts:33 是否可读。 Returns boolean instanceBuffer get instanceBuffer(): boolean set instanceBuffer(value: boolean): void Overrides VertexBuffer.instanceBuffer Defined in laya/d3/RenderObjs/NativeOBJ...
来源: Laya3.0_api 发布时间: 20231115
...博 QZONE 微信 mrchenx 赞同来自: var _parent = new Sprite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需要在addChild的...
来源: Laya_社区 发布时间: 20170222
...法或算法。 有没有四元数右乘三维向量的算法? 现在的graphics 填充色透明度还不可以设置吗? 或者说和背景混合呢? 使用setsubpixel函数对图片进行纹理像素填充,安卓端微信不正常 关于graphics.fillTexture,该api只能填充矩形的,...
来源: Laya_社区 发布时间: 20171018
...链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是sp.graphics.clear(); 2017-10-19 0 2 分享 微博 QZONE 微信 laya21126 赞同来自: /** * 初始化 地图 */ public function initMap(texture:Texture, bgID:int):void{ ...
来源: Laya_社区 发布时间: 20171019
...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...
来源: Laya_社区 发布时间: 20200421
...下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。 附件 : --> 2017...
来源: Laya_社区 发布时间: 20170216
...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...
来源: Laya_社区 发布时间: 20170628
...e(); imgSprite.x = 300 imgSprite.graphics.drawTexture(imgTextTure,0,0); avatarContainer.addChild(imgSprite); var mask = new Sprite(); mask.graphics.drawCircle(50,50,50,"#00ffff") ...
来源: Laya_社区 发布时间: 20170209
...unction CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 pr...
来源: Laya_社区 发布时间: 20170822