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

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

281. laya.physics.BoxCollider [ 53%]

...否为单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值为0ColliderBase rigidBody : RigidBody[只读]刚体引用ColliderBase  width...

来源: Laya2.0_api 发布时间: 20190513

282. [LayaAirIDE3]3.3 新版ui 元素处于滚动区域内,localToGlobal坐标转换异常,没有加上滚动值 [ 53%]

...用parent去做转换,把代码下面这样也行: const pos = (this.owner as Laya.Sprite).localToGlobal(new Laya.Point(0, 0)); 2025-08-15 1 1 分享 微博 QZONE 微信 Recovery 赞同来自: ??? 2025-08-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

283. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 53%]

...his.enableRightClick();         //禁用Ctrl+c,Ctrl+v         this.owner.on("keydown", this, (event: KeyboardEvent) => {             if (event.ctrlKey && event.key === "c") {                 event.preventDefault();             }             if (event.ctrl...

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

284. 将3D模型从对象池中重复利用后,挂载的PhysicsCollider组件会失效 [ 53%]

...却没有跟着调整位置?? 通过射线检测发现,检测了到owner,而successed却是false

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

285. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya...

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

286. viewportPointToRay产生的射线始终有偏差,是为什么? [ 53%]

...tate); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewp...

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

287. 取色器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...eHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动...

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

288. laya.physics.joint.GearJoint [ 53%]

...第2个关节,类型可以是RevoluteJoint或者PrismaticJointGearJoint owner : Node [只读]获取所属Node节点。 Component  ratio : Number两个齿轮角速度比例,默认1GearJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDef...

来源: Laya2.0_api 发布时间: 20190513

289. 加载.lh文件 运行后黑屏 无法显示 [ 53%]

...rue;         this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCo...

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

290. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 52%]

...rue;         this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCo...

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