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

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

31. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(u...

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

32. laya.filters.ColorFilter [ 73%]

...meters brightness:Number — 亮度,范围:-100~100 ReturnsColorFilter — this adjustColor()method  public function adjustColor(brightness:Number, contrast:Number, saturation:Number, hue:Number):ColorFilter 调整颜色,包括亮度,对比度,饱和度和色调 Parameters brightness:Number ...

来源: Laya2.0_api 发布时间: 20190513

33. laya.utils.ClassUtils [ 73%]

...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils  getRegClass(className:String):*[static] 返回注册 Class 映射。 ...

来源: laya_api 发布时间: 20170929

34. 安装layaair2-cmd一直失败 [ 73%]

...pm ERR! npm ERR! Failed at the gifsicle@4.0.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-11T...

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

35. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 73%]

...cts without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will recursively check its child objects until ...

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

36. zip更新 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...h(async entry => { if (entry.entryName == 'head.json') { } else { await this.addObject(entry.entryName, entry.getData()) } }) //写head。zip中可能没有head.json,例如只是某个目录,这时候就不要更新root了 try { let buf = zip.getEntry('head.json'); await this._frw.write('head...

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

37. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...perty({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (...

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

38. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...* 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3(); } /** * 第一次执行update之前执行,只会执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onStart(): void { this.camera = this.owner as Laya.Camera; if (this.tar...

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

39. layacmd 安装不成功 [ 70%]

... have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue...

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

40. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...(var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂载到Scene2D场景上,然后将List组件拖入到脚本暴露出来的属性...

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