大约有 303 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)
Laya_社区(106) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya3.0_文档(3) Laya2.0_示例(2) Laya_示例(2)
...g) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya....
来源: Laya2.0_示例 发布时间: 20240930
...inue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight); else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,texture.source...
来源: Laya_社区 发布时间: 20180228
..., lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...
来源: laya_api 发布时间: 20170929
...gHole"+[eggLoc[i][0]+eggLoc[i][1]); b.graphics.drawTexture(Laya.loader.getRes(Res),tx-45,ty-45); b.size(92,96); b.name = "egg"+i; Laya.stage.addChild(b); b.on(E...
来源: Laya_社区 发布时间: 20170517
...olor:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...
来源: Laya2.0_api 发布时间: 20190513
... = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Laya.stage.addChild(_sp); 开放域那边初始化的时候宽高和主域宽高是一致的。 这个写法在有些机器上是正常的,但到别的一...
来源: Laya_社区 发布时间: 20180511
...物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } //获取当前地板上面的所有物...
来源: Laya_社区 发布时间: 20160728
...自: a13121527420 支持,你可以获取多个texture,让sp.graphics.drawTexture(aa),sp.graphics.drawTexture(bb)这样连续去写即可! 2017-03-21 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a13121527420 哇啦哇啦哇啦! ...
来源: Laya_社区 发布时间: 20170320
...小游戏中无效 LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 2.0 drawTexture color参数无效 lh文件内meshSprite添加阴影属性无效 (此问题已经无效) 关于同为object层,层级设置无效的问题 TextInput 的 type 属性设置为 number 的时候 maxChars 字数...
来源: Laya_社区 发布时间: 20161026
...or:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...
来源: Laya2.0_api 发布时间: 20190513