• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 962 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)

831. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 47%]

...6大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); }  drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRe...

来源: Laya_社区 发布时间: 20190315

832. drawcall优化问题 [ 47%]

...g888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('c...

来源: Laya_社区 发布时间: 20180122

833. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 47%]

...json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stage.bgColor = "#ffffff"; // var bgs = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.stage.add...

来源: Laya_社区 发布时间: 20170228

834. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 47%]

...Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将模型加到场景上 var layaMonkey:Sprite3D = scene.addChild(sp) as Sprite3D; })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在...

来源: Laya2.0_文档 发布时间: 20210715

835. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 47%]

...为根节点使用,可以在项目面板鼠标右键单击assets,找到Create,点击Prefab 2D,右键单击View,点击Change Type点击UI,点击Dialog即可创建完毕,如图3、动图4所示。创建完毕之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联...

来源: Laya3.0_文档 发布时间: 20230303

836. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 46%]

...r = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg);         bg2 = new Sprite()...

来源: Laya_社区 发布时间: 20170826

837. 小游戏项目 加载有中文的json文件 报错 [ 46%]

...0); var url:String = "res/json/Sheet1.json"; Laya.loader.load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工具中报错 Unexpected t...

来源: Laya_社区 发布时间: 20180108

838. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 46%]

...OWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private crea...

来源: Laya2.0_文档 发布时间: 20210715

839. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 46%]

...imer 中,有个两帧之间的时间间隔,单位毫秒number,似乎是Create传进去的? ------------------------------------------- declare module laya.utils { /** * <code>Timer</code> 是时钟管理类。它是一个单例,可以通过 Laya.timer 访问。 */ class Timer { pri...

来源: Laya_社区 发布时间: 20171109

840. 微信小游戏利用开放域好友关系链做排行榜 [ 46%]

...控制         Laya.ResourceVersion.enable("version.json", Handler.create(this, this.beginLoad), Laya.ResourceVersion.FILENAME_VERSION);     }      private beginLoad():void{         Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded));     }   ...

来源: Laya_社区 发布时间: 20180529