大约有 592 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
.../ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); let sp = new Sprite() sp.graphics.drawRect(0, 0, 50, 50, '#ffff000') ape.mask = sp })); } })(); 右边的...
来源: Laya_社区 发布时间: 20171220
...heen 赞同来自: 同样是fillText,为啥我就画不出来。。 this.graphics.fillText(index + "", p.x, p.y, "12px Arial", "0xffffff", "center"); 在debugger的时候打印出来是undefined... 如果超出数量还会报错,需要改底层才行吗? 2018-01-15 0 2 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180112
...IGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs cent...
来源: Laya3.0_api 发布时间: 20231115
...求适当调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite); } LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined at Texture.moveUV (LayaUISamp...
来源: Laya_社区 发布时间: 20180725
...节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;...
来源: Laya2.0_api 发布时间: 20190513
...eTexture(); //如果texture有值,进行绘制并排序 if(texture) { sp.graphics.drawTexture(texture,(num-1)*70,Math.floor((num-1)/10)*70+10); } } private function chageTexture():void { //如果图片的张数超出100,将不再执行 if(num>=100) { Laya.timer.clear(this,onLoop); return; } /...
来源: Laya_社区 发布时间: 20161107
...eight,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sp...
来源: Laya_社区 发布时间: 20170830
... 写了个边缘光的自定义shader,有很多问题,帮忙看一下 graphics alpha 问题 event自定义事件的问题 问题状态 最新活动: 2019-03-24 15:02 浏览: 905 关注: 2 人
来源: Laya_社区 发布时间: 20190324
...x Constructors constructor Properties _ShadowMapupdateFrequency _extra _ownGraphics _reflectionsIblSamples _reflectionsResolution _reflectionsSource _scene _sceneUniformData _skinBaseUrl _sundir _url autoSize currentCreationLayer enableLight hitTestPrior mouseThrough name tag REFLECTIONMODE_CUSTOM R...
来源: Laya3.0_api 发布时间: 20231115
...这段代码有什么问题? let s: Laya.Sprite = new Laya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印...
来源: Laya_社区 发布时间: 20180828