大约有 75 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
...t laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;//保存截屏后返回的HtmlCanvas对象 private var texture:Textu...
来源: Laya_社区 发布时间: 20170822
...准备好的图片放置项目资源目录下,并预加载资源,获取texture 准备好的图片head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Load...
来源: Laya_社区 发布时间: 20170324
...下: Main.js: const Sprite = Laya.Sprite; const Text = Laya.Text; const Texture = Laya.Texture; Laya.init(800, 600); var txt = new Text(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(sp...
来源: Laya_社区 发布时间: 20190401
...图标 if (input.text.trim().length == 0) { input.changeText(""); sp_icon.texture = Laya.loader.getRes("auth/sp_wrong.png"); switch (input.name) { case "input_nickname": this._arrCheck[0] = false; break; case "input_mobile": this._arrCheck[1] = false; break; case "input_password": this._arrCheck[2] ...
来源: Laya_社区 发布时间: 20200410
...添加新回复 发起人 王 坤 相关问题 LayaBox IDE 支持多开吗 Texture图片能否进行翻转? 请问一下 ProtoBuf 支持 as3 版本吗? 希望加入类似Pixi.js的多纹理寄存器支持 支不支持多个Texture 拼接成一张图片! 刚体动画到底能不能用?以后...
来源: Laya_社区 发布时间: 20180610
...ay.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20170918
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) Texture图片能否进行翻转? ios14系统下 blendMode='lighter' 图片异常 使用钢体设置防穿后仍有几率会穿透 matter中layasprite怎么改变图片大小? 关于适配采用showAll后留白部分的颜...
来源: Laya_社区 发布时间: 20200728
...变加载图片的大小是无效的,不过你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics.clear(); ...
来源: Laya_社区 发布时间: 20160711
...a.loader.on(Event.ERROR, this, onError); private function onAssetLoaded(texture:Texture):void{ //console.log("111: "); txt.visible=false; title = new Sprite(); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20171001
...son数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 private _posType: string; // 左 右 中 public static LEFT: string = "left"; public static RIGHT:...
来源: Laya_社区 发布时间: 20161014