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

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

2711. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

.../roleMonster/mc/"; /** 已加载的 .mc 资源路径数组 */ private loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>(Laya.Animator2D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); thi...

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

2712. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 44%]

... Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (l...

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

2713. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 44%]

...tor3 setVector3ByIndex setVector4 setVector4ByIndex destroyUnusedResources load Constructors constructor new UnlitTestMaterial(): UnlitTestMaterial Overrides Material.constructor Defined in laya/d3/core/material/unlit/UnlitTestMaterial.ts:3 Returns UnlitTestMaterial Properties destoryedImmediately d...

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

2714. 打包成APK后,POST请求会先去Download请求的地址 [ 44%]

打包成APK后,POST请求会先去Download请求的地址 项目打包成app后运行,使用XMLHttpRequest发出post请求后,log中出现了Download 我post的地址。然后有时候会卡住,大概5秒后会出现Download end:200的log,这之后才会真正把post请求发出去。有...

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

2715. laya.particle.Particle2D [ 44%]

...oolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(url:String):void 加载粒子文件 Particle2D loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只...

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

2716. 3D角色动作播放时长不正确 [ 44%]

...755 好了,解决了。 加载.lm模型要用Laya.MeshSprite3D(Laya.Mesh.load(path)); 动画目前看起来还是正常的。 2017-05-22 1 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 我们看下,晚些回复! 2017-05-18 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 可以在max...

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

2717. 无法触发浏览器文件上传框 [ 44%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

2718. 视频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chrome中,自动播放只允许静...

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

2719. 苹果上架有问题啊 , !!!!!! [ 44%]

...you may not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method...

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

2720. layaAir TS项目如何引用protoBuf库? [ 44%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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