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

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

261. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 53%]

...erShape=null;         this._simulation=null;         (this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged);     } 2019-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

262. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya...

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

263. 给3D场景scene添加鼠标事件无效 [ 53%]

...e。结果是无反应。 4、绑定鼠标事件之前,是使用 scene = owner.scene 获取到当前scene对象的。并且该scene对象不为空。   如下图:   原本目标是希望在3D场景上覆盖一层2D Sprite,这些2D Sprite是需要拖拉和划屏操作的,同时又需要对 ...

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

264. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...eHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动...

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

265. [LayaAir3]addComponent(Laya.Rigidbody3D); 报错 [ 53%]

...点被添加到舞台后     onEnable(): void {         let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D;         console.log(a,typeof(a))         let aa = a.addComponent(Laya.Rigidbody3D);     }   报错 TypeError: Cannot read properties of undefined (reading &apo...

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

266. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 53%]

...nParticleSystemPublic Methods  MethodDefined By  ShurikenParticleSystem(owner:ShuriKenParticle3D)ShurikenParticleSystem  _getIndexBuffer():IndexBuffer3DShurikenParticleSystem  _getType():int[override] 获取几何体类型。 ShurikenParticleSystem  _getVertexBuffer(index:int = 0):VertexBuf...

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

267. laya.physics.BoxCollider [ 53%]

...否为单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值为0ColliderBase rigidBody : RigidBody[只读]刚体引用ColliderBase  width...

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

268. 将3D模型从对象池中重复利用后,挂载的PhysicsCollider组件会失效 [ 53%]

...却没有跟着调整位置?? 通过射线检测发现,检测了到owner,而successed却是false

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

269. viewportPointToRay产生的射线始终有偏差,是为什么? [ 53%]

...tate); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewp...

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

270. laya.physics.joint.GearJoint [ 52%]

...第2个关节,类型可以是RevoluteJoint或者PrismaticJointGearJoint owner : Node [只读]获取所属Node节点。 Component  ratio : Number两个齿轮角速度比例,默认1GearJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDef...

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