大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0083 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...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
...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
...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
... = 3; // 批量预加载资源 // Laya.loader.create([ // "res/threeDimen/staticModel/grid/plane.lh", // "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", // // "res/threeDimen/particle/RadiusMode.lh", ...
来源: Laya_社区 发布时间: 20190509
...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
...,点微信原点切换出去再进来显示正常了,输出日志[wxgl]Creating ScreenCanvas (WebGL): size: 1336x752, style: 736x414, antialias: no, preserveDrawingBuffer: no,搜了下是没有重绘的原因。目前在iphone有些机型上会出现,我想可能是切换场景时等待资...
来源: Laya_社区 发布时间: 20190227
...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
...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
...义就差点意思了,不就是为了方便嘛,但是如果用prefab.create(),然后再添加到场景就也是正常的,所以这个设计是不是有点不够友善,我觉得我真搞拖到场景中,和脚本使用create添加到场景中的使用应该是一样的吧,我觉得可以...
来源: Laya_社区 发布时间: 20211026
...请看图。 再次翻开引擎的源码。 发现BaseCamera的_create,没有在子类Camera进行重写。 结果就是导致通过_create创建的实例全是BaseCamera。 这其实是程序员们粗心大意造成的。之前版本都正常。 发完这个帖,我已经彻底放弃...
来源: Laya_社区 发布时间: 20190801