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

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

481. 骨骼动画-Spine事件 [ 67%]

...center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite...

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

482. laya.resource.Prefab_API3.0 [ 67%]

...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new Prefab(version?: number): Prefab Overrides Resource._...

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

483. _calculateCacheRect函数有bug [ 67%]

...   if(!this.tempRect){                 this.tempRect = Rectangle.create();             }             if (this.cacheRect)                 this.cacheRect.recover();             this.cacheRect = null;             return this;         }   _calculateCacheRect...

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

484. Laya.loader.load 教程代码出错 [ 67%]

...          }             Laya.loader.load(arr,Handler.create(this,LoadComplated));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnIm...

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

485. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 67%]

...图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图...

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

486. 物理Bodies绑定Laya.Sprite [ 67%]

...idth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#0...

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

487. LayaNative 2.8.0 加载的TTF字体不生效,附复现工程。 [ 67%]

...           Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS-H";         }), null, Laya.Loader.TTF)...

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

488. 鼠标交互-Hold [ 67%]

....stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2,...

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

489. 从Unity中编辑并导出摄像机(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 67%]

...统计信息 Laya.Stat.show(); //预加载角色动画资源 Laya.loader.create("monkey/monkey.ls",Laya.Handler.create(this,this.onSceneOK)); } onSceneOK() { //添加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = sc...

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

490. 苹果iOS审核Guideline 4.3 - Design [ 67%]

...am. - Once your app is fully compliant, resubmit your app for review. When creating multiple apps where content is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use t...

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