大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0126 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...运行layaair-cmd compile 后报下面的错误。 sp.stdout.on("data", this.emitStdout.bind(this)); ^ TypeError: Cannot read property 'on' of undefined at LayaProjectCompiler.compile (/usr/lib/node_modules/layaair-cmd/compile_project.js:70:14) at new LayaProjectComp...
来源: Laya_社区 发布时间: 20180514
...new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(300, 300, 300); Laya.Utils3D.convert3DCoordTo2DScreenCoord(translate, translate); layaMonkey.transform.position = translate; Laya.timer.frameLoop(1, this,...
来源: Laya_社区 发布时间: 20170807
...source/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hScrollBar = new HScrollBar();//创建一个 HScrollBar 类的实例对象 hScrollBar 。 hScrollBar.skin = "resource/ui/hscroll.png";//设...
来源: Laya3.0_api 发布时间: 20231115
...Request = new HttpRequest(); req.once(Event.COMPLETE, this, function():void { trace(req.data); }); req.once(Event.ERROR, this, function():void { ...
来源: Laya_社区 发布时间: 20170120
...source/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { vScrollBar = new VScrollBar();//创建一个 vScrollBar 类的实例对象 hScrollBar 。 vScrollBar.skin = "resource/ui/vscroll.png";//设置 vScrollBar 的...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 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
.../预加载纹理文件 Laya.loader.load([textureFile], Laya.Handler.create(this, () => { this.aaa.skin = textureFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件...
来源: Laya2.0_文档 发布时间: 20210714
...nCurveWall方法内,instantiate复制对象内传入的参数拼写错误this.wallCurvePre没有,应该是改为this.wallCurve。 CubeLearn_Laya.zip 2022-03-31 1 1 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 没有losd这个方法,您想用的是load吗? 2022-03-25 0 0 分享 微博 QZ...
来源: Laya_社区 发布时间: 20220325
...JS Object> 1: fromString(aka fromString) [buffer.js:~194] [pc=7BB54E79](this=216041A1 <undefined>,string=7AE742AD <Very long string[28528381]>,encoding=216041A1 <undefined>) 2: new constructor(aka Buffer) [buffer.js:~75] [pc=7B6A4B9C](this=7AE742C1 <a Buffer with map 3D42E605...
来源: Laya_社区 发布时间: 20191225
...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, fitDOM); let viewIns = this; function goGameWorld() { videoElmt.pause(); Laya.stage.removeChild(reference); Laya.Browser.removeElement(videoElmt); // Laya.Browser.document.body.removeChild(videoElmt); Laya.Browser.remove...
来源: Laya_社区 发布时间: 20180802