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

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

2751. linux系统运行layaair-cmd报错 [ 61%]

...运行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

2752. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 61%]

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

2753. laya.ui.HScrollBar_API3.0 [ 61%]

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

2754. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 61%]

...Request = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {             ...

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

2755. laya.ui.VScrollBar_API3.0 [ 60%]

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

2756. laya.ui.CheckBox_API3.0 [ 60%]

...背景颜色。 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

2757. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 60%]

.../预加载纹理文件 Laya.loader.load([textureFile], Laya.Handler.create(this, () => { this.aaa.skin = textureFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件...

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

2758. 运行时网页黑屏,报错提示 [ 60%]

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

2759. JavaScript heap out of memory,ide编译不了代码 [ 60%]

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

2760. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 60%]

...位置,对齐的位置和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