大约有 1,754 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...rosoft YaHei"; txt.color = "#ff0000"; txt.leading = 5; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我的简单测试代码: 图片是2.0版本和1.8版本的字体显示对比。 2.0版本的ggg下面部...
来源: Laya_社区 发布时间: 20190606
...te = new Sprite; ape.x=(apesCtn._childs.length)*(stageWidth/4) var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } 201...
来源: Laya_社区 发布时间: 20161023
...Obj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSource,true); tex._setCreateURL(url); var tex2=new Laya.Texture(tex); tex2.url=url; var image:Laya.Image = new Laya.Image()...
来源: Laya_社区 发布时间: 20190923
...,可以设定为`White text with alpha`,即白色字透明底。 | | Width | 导出的位图宽度 | | Height | 导出的位图高度 | | Font descriptor | 字体描述文件,必须要选择 xml | | Textures | 纹理图片格式,必须要选择 png | #### 第六步:导出位图字体 完...
来源: Laya2.0_文档 发布时间: 20210715
... var pageYOffset = exports.pageYOffset = 0; 2、module4里修改clientWidth和clientHeight属性: { key: 'clientWidth', get: function get() { var ret = parseInt(this.style.fontSize, 10) * this.innerHTML.length; return Number.isNaN(ret) ? this.width : ret; ...
来源: Laya_社区 发布时间: 20180512
...点显示也会恢复正常。 游戏参数: GameConfig{ static width:number=750; static height:number=1334; static scaleMode:string="showall"; static screenMode:string="vertical"; static alignV:string="middle"; static alignH:string="center"; }...
来源: Laya_社区 发布时间: 20200812
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 節點的destroy方法參數默認為true時是否會遞歸調用子對象的destroy方法? LAYA转换后,MovieClip的gotoAndStop方法会使子MovieClip偶尔显示...
来源: Laya_社区 发布时间: 20181110
...00; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000");...
来源: Laya_社区 发布时间: 20181113
...到Native里有一个保存图片的方法。conch.saveAsJpeg( arrayBuff,width,height,conch.getCachePath()+"/test.jpg" ); 这个方法第一个参数需要传入arraryBuffer数据。 于是我使用drawToCanvas的方法获得HTMLCanvas。 并且使用HTMLCanvas.context.getImageData().data的方...
来源: Laya_社区 发布时间: 20180120
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 laya2.0如何用命令行执行清理并导出功能 请问Texture2D如何用base64字符串构建对象 UI编辑里面添加的rect怎么设置透明度? 如何用 Flas...
来源: Laya_社区 发布时间: 20180327