大约有 404 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
...置。 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
...置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧...
来源: Laya2.0_api 发布时间: 20190513
...s | Events Packagelaya.uiClasspublic class ListInheritanceList Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender, IItem List 控件可显示项目列表。默认为垂直方向列表。可通过UI编辑器自定义列表。 Public Properties Hide Inherited Public Properties Show...
来源: Laya2.0_api 发布时间: 20190513
...置。 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
...Sprite scene : *[read-only] 获得所属场景。 Node screenAdaptationEnabled : Boolean = true是否启用屏幕适配,可以适配后,在某个时候关闭屏幕适配,防止某些操作导致的屏幕意外改变Stage screenMode : String 场景布局类型。 取值范围: "none" ...
来源: Laya2.0_api 发布时间: 20190513
...代码 */ //获取物理刚体组件 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_文档 发布时间: 20251010
...置。 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
...ss, property } = Laya; @regClass() export class Demo extends Laya.Script { onEnable(): void { Laya.Stat.elements = [ Laya.StatElement.CT_FPS, Laya.StatElement.CT_DrawCall, Laya.StatElement.M_GPUMemory ]; // 开启统计面板(参数为x,y坐标,默认为0,0) Laya.Stat.show(5, 5); // 关闭示...
来源: Laya3.0_文档 发布时间: 20260128
...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