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

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

411. 加载时间轴动画报错 [ 70%]

...w Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animation._pro...

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

412. UI-ScrollBar [ 70%]

...croll$down.png", "res/ui/vscroll$up.png"); Laya.loader.load(skins, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { this.placeHScroller(); this.placeVScroller(); } placeHScroller() { const HScrollBar = Laya.HScrollBar, Handler = Laya.Handler; let hs = new HScrollBar(); Laya.s...

来源: Laya2.0_示例 发布时间: 20251209

413. [LayaNative3]3.3的TrailRenderer组件找不到 [ 70%]

...arkles) at HierarchyParser.parse (HierarchyParser.js:287:37) at PrefabImpl.create (PrefabImpl.js:18:28) atParticle_EternalLight.ts:38:44   Uncaught (in promise) TypeError: Cannot read properties of null (reading 'particleSystem')     at Particle_EternalLight.ts:44:55   HierarchyParser.js:375 Err...

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

414. Resources already exist,is repeated loading 加载特效报重复加载 [ 70%]

... = 3;      //  批量预加载资源         // Laya.loader.create([         //  "res/threeDimen/staticModel/grid/plane.lh",         //  "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",         // //   "res/threeDimen/particle/RadiusMode.lh",     ...

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

415. 性能测试-骨骼 [ 70%]

...th, type: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handler.create(this, onAssetsLoaded)); } init(); function onAssetsLoaded() { var tTexture = Loader.getRes(mTexturePath); var arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComp...

来源: Laya_示例 发布时间: 20251209

416. 微信小游戏调试时发现,某些机器上会出现切换场景后屏幕不刷新 [ 70%]

...,点微信原点切换出去再进来显示正常了,输出日志[wxgl]Creating ScreenCanvas (WebGL): size: 1336x752, style: 736x414, antialias: no, preserveDrawingBuffer: no,搜了下是没有重绘的原因。目前在iphone有些机型上会出现,我想可能是切换场景时等待资...

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

417. 鼠标交互-拖动 [ 70%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot...

来源: Laya_示例 发布时间: 20251209

418. 预加载结束之后还是报lose skin [ 70%]

...ate loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ ...

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

419. 预设组件挂脚本,添加到场景以后赋值失败 [ 70%]

...义就差点意思了,不就是为了方便嘛,但是如果用prefab.create(),然后再添加到场景就也是正常的,所以这个设计是不是有点不够友善,我觉得我真搞拖到场景中,和脚本使用create添加到场景中的使用应该是一样的吧,我觉得可以...

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

420. 新版本2.2.0又遇到BUG了,多到我都已经不好意思再反馈问题了 [ 70%]

...请看图。   再次翻开引擎的源码。     发现BaseCamera的_create,没有在子类Camera进行重写。 结果就是导致通过_create创建的实例全是BaseCamera。 这其实是程序员们粗心大意造成的。之前版本都正常。   发完这个帖,我已经彻底放弃...

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