大约有 225 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
... ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR npm ERR! code 1 2017-11-24 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20171124
...约束的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstrain...
来源: Laya2.0_文档 发布时间: 20210715
...约束的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstrain...
来源: Laya2.0_文档 发布时间: 20210715
...线检测到的精灵对象 var selectSprite3D:MeshSprite3D = out.collider.owner as MeshSprite3D; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(selectSprite3D!=this.oldSelectMesh) (this.oldSelectMesh.meshRenderer.sharedMater...
来源: Laya2.0_文档 发布时间: 20210714
...ng): Laya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: Laya.CheckBox): void { checkBox.label = checkBox.selec...
来源: Laya3.0_文档 发布时间: 20251010
... "atlas/comp/hscroll.png"; panel.size(600, 275); panel.pos(150, 150); this.owner.addChild(panel); // 创建Image组件,作为Panel的子节点 let img: Laya.Image; for (var i: number = 0; i < 4; i++) { // 创建4个Image,水平排列 img = new Laya.Image("atlas/comp/image.png"); img.x = i * 5...
来源: Laya3.0_文档 发布时间: 20251010
...分离模式,引擎出这样的问题,神奇。laya版本2.5.0。 this.owner 下有3个节点 子节点却只有一个, 希望官方能给个解决方法 附件 : --> 2020-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20201118
...ypescript override public function onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody...
来源: Laya2.0_文档 发布时间: 20210714
...tedIndex); tab.selectHandler = new Laya.Handler(this, this.onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2025 all right re...
来源: Laya3.0_文档 发布时间: 20251010
...date(normalizeTime: number): void { const sp = this.playStateInfo.animator.owner as Laya.Sprite; sp.graphics.repaint(); } } 修改后的完整源码见附件。 LayaTest2.zip 2025-10-27 0 0 分享 微博 QZONE 微信 lv 赞同来自: layabox 崩溃问题会在3.3.3版本修复 2025-10-17 1 0 分享 ...
来源: Laya_社区 发布时间: 20251010