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

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

1541. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 40%]

...(1, -1, 0)); Laya.Sprite3D.load("h5/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2.transfo...

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

1542. UI加载完成后无法获取控件的大小——超详细版问题 [ 40%]

....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI.myref.getBounds()); console.log("mypan-onloaded",...

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

1543. Laya.URL.basePath加载不到网络资源 [ 40%]

..., type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "im...

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

1544. 如何实现3d遮罩效果? [ 40%]

...oader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切换RenderTexture"; btn.labelBold = true; btn.labelSize = 20; btn.sizeGri...

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

1545. Laya.Pool用法 [ 39%]

...o     /**      * 协议对象池      * Author :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQU...

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

1546. 关于laya无法缓存非图片、声音文件bug [ 39%]

...读取是不走readfile的,第一次缓存之后后面使用都是直接create音频.src去加载 1571361226用户 • 2020-07-11 16:07 @陆仁毅: 陆哥 那播放不了是啥原因 1571361226用户 • 2020-07-11 16:08 @1571361226用户: 感谢陆哥了 1571361226用户 • 2020-07-11 17:33 不...

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

1547. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 39%]

...行,请问怎么才能加载预制体,这个方法报错 Laya.loader.create,单独运行子域项目是没问题 177*****949 • 2018-11-08 20:25 @嘿哈 还没有解决吗 ? bingo • 2018-11-16 18:03 我也出现这个问题了,怎么解决呢 bingo • 2018-11-18 10:55 Laya.MiniAdpter.ini...

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

1548. 多线程Worker · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs/worker.j...

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

1549. laya.ui.CheckBox_API3.0 [ 38%]

...画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创...

来源: Laya3.0_api 发布时间: 20231115

1550. 【简单跑酷--JS版】---Lv.3 添加地板 [ 38%]

...kground.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Floor.js 开始编写代码 这里 我们想一下地板有哪些功能? 1、自身从右到左...

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