大约有 378 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0085 秒)
...代码 */ //获取物理刚体组件 this.rigidbody1 = this.cube1.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; this.rigidbody2 = this.cube2.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //设置rigidbody1为触发器,取消物理反馈 this.rigidbody1.isTrigger = true; this.rigidbody2.i...
来源: Laya3.0_文档 发布时间: 20240624
...置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 ...
来源: Laya2.0_api 发布时间: 20190513
...创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,取消物理反馈 staticCollider.isTrigger = true; /* ……省略若干代码 */ ``` #### 2.2 理解各种碰撞器 ##### 2.2.1 静态碰撞器 `PhysicsCollider` LayaAir的3...
来源: Laya2.0_文档 发布时间: 20210715
...ton):void { console.log("按钮button被点击了!") } } Hierarchy UIComponent Button CheckBox Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHei...
来源: Laya3.0_api 发布时间: 20231115
... anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D labe...
来源: Laya3.0_api 发布时间: 20231115
... anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D labe...
来源: Laya3.0_api 发布时间: 20231115
...gColor blendMode bold borderColor bottom cacheAs centerX centerY color components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize editable filters fitContent focus font fontSize globalRotation globalScaleX globalScaleY graphics gray heigh...
来源: Laya3.0_api 发布时间: 20231115
...gColor blendMode bold borderColor bottom cacheAs centerX centerY color components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize editable filters fitContent focus font fontSize globalRotation globalScaleX globalScaleY graphics gray hScro...
来源: Laya3.0_api 发布时间: 20231115