大约有 1,363 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1161) Laya2.0_文档(69) Laya3.0_文档(63) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...ML文本</span>"; html += "</div>" 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
...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
....Handler.create(this, (success) => { 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
...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
...onCollision); 2.碰撞检测 private onCollision(event): void { console.log("碰撞了.."); var home = _gamePage._mainPage._playPage; for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue; var ...
来源: Laya_社区 发布时间: 20180601
...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
...hangeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &&...
来源: Laya_社区 发布时间: 20170327
... • 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
..._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
... function callback(event) { console.log(" callback test"); } function laya_test() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cli...
来源: Laya_社区 发布时间: 20161128