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

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

591. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...ion.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } 由于本例不需要使用LayaAir的显...

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

592. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 61%]

...错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)         }),null,Laya.Loader.IMAGE);    这段代码, ...

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

593. 输入设备-指南针 [ 61%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); //...

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

594. laya.maths.Matrix [ 61%]

...中的所有矩阵数据复制到指定的 Matrix 对象中。 Matrix  create():Matrix[static] 从对象池中创建一个 Matrix 对象。 Matrix  destroy():void 销毁此对象。 Matrix  getScaleX():Number 获取 X 轴缩放值。 Matrix  getScaleY():Number 获取 Y 轴缩放值。 Matrix...

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

595. laya.net.LoaderManager [ 61%]

...的加载,所有未加载的内容全部停止加载。LoaderManager  create(url:*, complete:Handler = null, progress:Handler = null, clas:Class = null, params:Array = null, priority:int = 1, cache:Boolean = true):* 根据clas类型创建一个未初始化资源的对象,随后进行异步加...

来源: laya_api 发布时间: 20170929

596. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 61%]

...      this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh");   ...

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

597. laya加载unity插件导出的场景 physics3D is not a function [ 61%]

...Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComplete (lay...

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

598. 为什么自定义shader大图正常,小图就被缩小了 [ 61%]

...(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi&quot...

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

599. 3D网格添加刚体后设置欧拉角出现位置错误 [ 61%]

...    Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         //平面加载         let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 1...

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

600. /*[COMPILER OPTIONS:normal]*/ [ 61%]

...设置cacheAs为normal,测试中Sprite数量没有减少 matter用Render.create()创建渲染器时里面参数因该放在options[]里还是放到外面 /*[COMPILER OPTIONS:ForcedCompile]*/ 和/*[COMPILER OPTIONS:Normal]*/ 的区别是什么? 该标签放在包头和类头上面区别又是...

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