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

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

471. 请问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

472. [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

473. 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

474. 计时器-延迟调用 [ 65%]

...is, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.hei...

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

475. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 65%]

...onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i &lt; event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue;  var ...

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

476. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...eScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的IEditorE...

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

477. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 65%]

...hangeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask &amp;&amp; _proMask.destroy(_proMask); _progress &amp;&amp...

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

478. 微信实机测试游戏,粒子效果异常 [ 65%]

... • 2018-01-29 15:42 @qian:我在ShurikenParticleSystem的emit方法中打log,可以看到log刷的很快 说明粒子数量并没有减少,是因为某种原因没有显示出来 qian • 2018-01-29 15:57 上传一下改完粒子数的demo LagField • 2018-01-29 16:02 @qian:在下面上传了...

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

479. 在UI类里调用启动类的静态函数失败了 [ 65%]

..._btn, { y: 200 }, 800, Laya.Ease.backOut, Laya.Handler.create(this, this.onLogoCompete)); } onLogoCompete(): void { Laya.Tween.to(this.biaoti_lable, { y: 120 }, 800, Laya.Ease.backOut); } onStart(): void { Laya.Tween.to(this.kaishi_btn, { y: 400 }, 800, Laya.Ease.backIn, Laya.Handler.create(this, th...

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

480. 事件绑定不触发bug [ 65%]

...            function callback(event) {             console.log(" callback test");         }                  function laya_test()         {             // 不支持WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.cli...

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