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

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

291. laya.d3.physics.PhysicsCollider [ 50%]

... isTrigger : Boolean 获取是否为触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] ...

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

292. 视频节点 · LayaAir3.0文档 · LAYABOX [ 50%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞...

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

293. layacmd 安装不成功 [ 50%]

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

294. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 50%]

...enemyHit);                     var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D;                     if(_enemy.layer==6)                     {                         if(this.enemy!=null)return                         console.log("检测...

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

295. 如何通过代码控制prefab上面的时间轴动画animation? [ 50%]

...作。 ... ani_show:Laya.FrameAnimation; onAwake(){ this.ani_show = this.owner["play"] as Laya.FrameAnimation; // 在onAwake中添加播放完成事件,基于某些原因,可能在onDisable的时候被移除,如果发现异常,可以选择在onEnable里面添加事件 this.ani_show.on(Laya.E...

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

296. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 50%]

...aya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  测试环境H5:0.094秒   测试环境native:0.697秒 附件 : --> ...

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

297. bug,ChainCollider.points第二次设置,会报错! [ 50%]

...s._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground");            //****新增代码*****, ground.addComponent(Laya.ChainCollider);                       //****新增代码*****, this._chains=ground.getComponent(Laya.ChainCo...

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

298. box2d 弹性异常 [ 50%]

...ther: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发现,这个球,他的水平速度x 小于一定值后就变...

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

299. laya.d3.component.animation.CameraAnimations [ 50%]

...ad-only] 获取播放器当前动画的节点数量。 KeyframeAnimations owner : Sprite3D[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : Anim...

来源: laya_api 发布时间: 20170603

300. laya.ui.Widget [ 50%]

... left : Number表示距左边的距离(以像素为单位)。Widget owner : Node [只读]获取所属Node节点。 Component  right : Number表示距右边的距离(以像素为单位)。Widget  top : Number表示距顶边的距离(以像素为单位)。WidgetPublic Methods Hide In...

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