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

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

471. this.bitmap.activeResource is not a function [ 65%]

....stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.designWidth; L...

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

472. 测试App安装(TypeScript-LayaNative原生服务-LayaNative一步一步) [ 65%]

... 点击"设置"-->"通用"-->"设备管理"-->"点击LayaBox Network Technology.."-->"点击信任"。 之后再打开LayaBox测试App就可以正常使用了,具体步骤如下所示: **步骤5:** ​ ![图片](img/6.png) ​ 图6 **步骤6:** ​ ![图片](img/7.png) ​ 图7 **步骤7:*...

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

473. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 65%]

...么问题? private mouseMove(state: Laya.RenderState):void{ // console.log(mX + "移动"); // console.log(this.lastMouseX + "按下"); let mX:number = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { vec = new Laya.Vect...

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

474. l微信开放域无法显示,但是可以正常传数据 [ 65%]

...-ts-5-0-7 if(Laya.Browser.onMiniGame) wx.onMessage(function(data){ console.log(data); if(data.url == "res/atlas/test.atlas" ){ Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } }.bind(this)); else Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,th...

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

475. image在相应loaded的时候,无法正确获取高度 [ 65%]

...uper(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width, this.height, createOption); M...

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

476. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 65%]

...ading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且也有我们打印出来的加载进...

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

477. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 65%]

...miniMap.complete==true){ var img = circle_image(miniMap,750,1334); console.log(miniMap); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circ...

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

478. 请问HtmlDivElement控件在innerHTML中有<div>标签的情况下获取实际宽高为0的问题? [ 65%]

...ML文本&lt;/span&gt;"; html += "&lt;/div&gt;" p.innerHTML = html; console.log(p.contextWidth); //0 p.frameOnce(2,this,function(){ console.log(p.contextWidth); //0 }) } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 2...

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

479. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 65%]

...n_0 (entry|entry|1.0.0|src/main/ets/MainAbility/MainAbility.ts:9:47) hdc hilog记录的日志信息:01-06 17:34:41.491 797 1382 I C01300/Ability: [ability_manager_service.cpp(StartAbility:546)]Start ability come, ability is EntryAbility, userId is -1 01-06 17:34:41.493 1574 1574 I C0391e/AceGestur...

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

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

....Handler.create(this, (success) =&gt; {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS-H";         }), null, Laya.Loader.TTF) 附件 : --> laya复现工程_2.6_.0和2_.8_.0_.zip 相关链接 ...

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