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

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

361. 场景管理 · LayaAir3.0文档 · LAYABOX [ 32%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onSt...

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

362. laya.d3.physics.Rigidbody3D [ 32%]

...dy3D  overrideGravity : Boolean 获取是否重载重力。 Rigidbody3D owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...

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

363. rigidBody.applyForce 物体不会移动 [ 32%]

...到的物体 this.text.text = "点击到了" + this._outHitResult.collider.owner.name; } } } 2020-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

364. 3D物理编辑 · LayaAir3.0文档 · LAYABOX [ 30%]

...his.out); //将射线碰撞到的物体设置为红色 ((this.out.collider.owner).getComponent(Laya.MeshRenderer).sharedMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0); /* ……省略若干代码 */ 4.4 使用异形物理射线 常规的物理射线是用一条...

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

365. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 30%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

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

366. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 29%]

....y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"...

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

367. laya.physics.RigidBody [ 29%]

...定冲突位掩码碰撞的类别,category位操作的结果RigidBody owner : Node [只读]获取所属Node节点。 Component  type : String 刚体类型,支持三种类型static,dynamic和kinematic类型 static为静态类型,静止不动,不受重力影响,质量无限大,可以...

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

368. 缓动 · LayaAir3.0文档 · LAYABOX [ 27%]

...ter.color = "#ffffff"; letter.font = "Impact"; letter.fontSize = 180; this.owner.addChild(letter); return letter; } (动图3-1) 结合实例代码,然后通过动图3-1的运动效果,我们可以看出,文本”Layabox”在初始位置(y轴300)出现之后,瞬间消失,然后从...

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

369. 动画状态机详解 · LayaAir3.0文档 · LAYABOX [ 27%]

...te: Laya.AnimatorState | Laya.AnimatorState2D) { ... this.model = animator.owner as Laya.Sprite3D;//得到Cube节点 } ... /** * 动画状态退出时执行。 */ onStateExit(): void { console.log("动画退出了"); //平移操作 let position = new Vector3(1, 1, 1); this.model.transform.translate(...

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

370. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 27%]

...94)     at RenderSprite3D.__proto._graphics (laya.core.js:6125)     at Owner.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at Component.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at...

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