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

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

381. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 43%]

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

382. 基于Cannon.js的物理系统(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 42%]

...线检测到的精灵对象 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

383. 2D寻路 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...建完毕,此方法只执行一次 onAwake(): void { let sprite = this.owner as Laya.Sprite; //sprite.cache = true; this._temp = new Laya.Sprite(); this.owner.scene.addChild(this._temp); this.findCompents(this._allAgent, sprite.scene, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = ...

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

384. iOS9兼容bug,求指教 [ 42%]

...anguage = "zh-Hans-NZ";     "mac_addr" = "02:00:00:00:00:00";     "net_owner" = PopcornNew;     "net_type" = WIFI;     resolution = 414x736;     "startup_count" = 0;     "startup_time" = 1560396012;     system = "iPhone OS";     "system_version" = "9.3.4"; } 2019-06-13 11:20:12.537 R...

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

385. 官方案例里摄像机绕物体旋转脚本的问题 [ 42%]

...口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者哪位大神能提供一份脚...

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

386. laya.d3.physics.CharacterController [ 42%]

...Controller  maxSlope : Number 获取最大坡度。 CharacterController owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...

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

387. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...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 2026 all right re...

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

388. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox.autoSize = true; ComboBox.pos(200, 200); }); } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

389. 复选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

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

390. 2D灯光与网格 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...} = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLight2D; p...

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