大约有 1,614 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...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
...错。 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
...; 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
...中的所有矩阵数据复制到指定的 Matrix 对象中。 Matrix create():Matrix[static] 从对象池中创建一个 Matrix 对象。 Matrix destroy():void 销毁此对象。 Matrix getScaleX():Number 获取 X 轴缩放值。 Matrix getScaleY():Number 获取 Y 轴缩放值。 Matrix...
来源: Laya2.0_api 发布时间: 20190513
...的加载,所有未加载的内容全部停止加载。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
... 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
...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
...(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"...
来源: Laya_社区 发布时间: 20180619
... 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
...设置cacheAs为normal,测试中Sprite数量没有减少 matter用Render.create()创建渲染器时里面参数因该放在options[]里还是放到外面 /*[COMPILER OPTIONS:ForcedCompile]*/ 和/*[COMPILER OPTIONS:Normal]*/ 的区别是什么? 该标签放在包头和类头上面区别又是...
来源: Laya_社区 发布时间: 20170513