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

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

2601. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 45%]

... ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1...

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

2602. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 45%]

... = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.add...

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

2603. 微信的缓存引擎只支持了图片和声音,其他lh,lm等文件自动缓存时都不支持是缓存的时候有什么问题和难点吗? [ 45%]

...存的方式缓存资源,但是缓存借口不支持数组和我已有的loader代码没有配合性。问题二请问在laya里面调用那些借口获取已经缓存的文件目录大小,以便我手动控制缓存大小 linchenrr • 2018-06-22 11:43 @shiyang12345:曾经提过建议,但是...

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

2604. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 45%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

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

2605. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 45%]

...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.cre...

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

2606. laya.events.EventDispatcher_API3.0 [ 45%]

...y EventDispatcher Resource Node Transform3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionManager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once ...

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

2607. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 45%]

...lor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+thi...

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

2608. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 45%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

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

2609. 分享:Panel下动态修改子容器宽高并刷新显示! [ 45%]

...载资源,此处添加button和panel垂直滚动条的皮肤使用 Laya.loader.load(['button-4.png','ui/vscroll.png','ui/vscroll$bar.png','ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要...

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

2610. Laya2.6 vscode 编译错误 [ 45%]

...next_tick.js:61:11)     at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)     at startup (internal/bootstrap/node.js:283:19)     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) ——————————————————————————————...

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