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

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

831. 隐藏默认的虚拟键、屏蔽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

832. 多摄像机窗口的使用(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

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

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

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

834. 图片使用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

835. 小游戏项目 加载有中文的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

836. 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

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

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

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

838. 微信小游戏利用开放域好友关系链做排行榜 [ 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

839. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 46%]

...ode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) { var width = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.ad...

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

840. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 46%]

...alog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.po...

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