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

大约有 378 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

341. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 43%]

...{ //获取射线检测到的精灵对象 var selectSprite3D = out.collider.owner; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(selectSprite3D!=this.oldSelectMesh) (this.oldSelectMesh.meshRenderer.sharedMaterial as BlinnPhon...

来源: Laya2.0_文档 发布时间: 20210715

342. 物理系统之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

343. 基于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

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

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

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

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

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

347. 下拉选项框组件 · LayaAir3.0文档 · LAYABOX [ 41%]

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

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

348. 导航标签组组件 · LayaAir3.0文档 · 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 2022 all right re...

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

349. 精灵 · LayaAir3.0文档 · LAYABOX [ 41%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点...

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

350. 多选框组件 · LayaAir3.0文档 · LAYABOX [ 39%]

...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_文档 发布时间: 20231019