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

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

1461. ts版本,开发微信小游戏,wxlocal的问题,,, [ 81%]

...加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和前面设置的那个ftp地址拼...

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

1462. 如何获得box单独每个面的material [ 81%]

...ConstValue.boxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = ne...

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

1463. Laya.loader.load 教程代码出错 [ 81%]

...      }             Laya.loader.load(arr,Handler.create(this,LoadComplated));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnImgClick);...

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

1464. 图像组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 81%]

...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.img.skin = "resources/layaAir.png";//设置皮肤 this.img.useSourceSize = true;//设置图片大小为源大小 this.img.color = "#0000FF";//设置颜色为蓝色 } } 二、通过代码创建Image组件 有时,不想让...

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

1465. 修改localRotationEuler的问题 [ 81%]

...性,再进行赋值操作,代码如下。// 刷新下数值 var temp = this.model.transform.localRotationEuler; // 再进行修改 this.model.transform.localRotationEulerY = 90;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性...

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

1466. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 81%]

...行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3...

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

1467. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 81%]

... {             Laya.init(500, 300);             this.drawSomething();         }            private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);             /...

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

1468. 聊天消息对话框中new一个HTMLDivElement 报错"Illegal constructor",请问这个该怎么处理? [ 81%]

...eView extends Laya.Box{ textfield : any = null; constructor(){ super(); // this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HTMLDivElement(); } } 2018-07-09 添加评论 免费帖 --> 分享 微...

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

1469. IOS真机下监听MOUSE_MOVE事件会报错 [ 81%]

...VE事件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错:   附件 : --> 2017-08-06 ...

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

1470. Laya2.0文件模式下var变量怎么引用? [ 81%]

...相关的链接 提交 1 个回复 大光电KID 赞同来自: 爱的誓言 this["xxx"]或者 private xxx;this.xxx; 2019-05-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 爱的誓言 相关问题 2.0一不小心删了bin目录下的...

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