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

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

221. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 45%]

...oTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏览器,出问题的是在2D场景中在微信浏览器不能播放视频   // 附件三张图片...

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

222. [LayaAir3]Laya 2.x/3.x 演示项目中 Laya.timer.scale 和 Laya.SpineSkeleton.playbackRate 对部分骨骼加速不生效 [ 45%]

...aySpine(): void { //找到spine动画组件 this.spineAni = this.spineNode.getComponent(Laya.Spine2DRenderNode); //获得spine动画的数量,这里要重点提醒的是,由于spine组件只有Play会由引擎去加载完成后才去播放,调用其它的API,务必要保障spine动画资源...

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

223. laya.d3.core.render.BaseRender_API3.0 [ 45%]

...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...

来源: Laya3.0_api 发布时间: 20231115

224. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 45%]

...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...

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

225. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 45%]

...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...

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

226. 体验LayaAir 3.0.0-beta.4遇到的一些问题 [ 45%]

...常应该是可以落下的,但是并没有 const rig = this.basketball.getComponent(Laya.Rigidbody3D);         if (rig) {             //默认不生效呢???             // rig.restitution = 0.9;             // rig.gravity = new Laya.Vector3(0, -10, 0);           ...

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

227. laya.d3.core.BaseCamera [ 44%]

...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...

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

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

...ipt 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.mass;...

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

229. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...ate(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animat...

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

230. laya.display.Animation_API3.0 [ 43%]

...rameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal gotoAndStop hasHideFlag hasListener...

来源: Laya3.0_api 发布时间: 20231115