大约有 501 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0074 秒)
...IGroup.ts:28 改变 Group 的选择项时执行的处理器,(默认返回参数: 项索引(index:int))。 Optional tag tag: string Inherited from Node.tag Defined in laya/display/Node.ts:62 节点标签 Static drawtocanvCtx drawtocanvCtx: Context Inherited from Text.drawtocanvCtx Defined in ...
来源: Laya3.0_api 发布时间: 20231115
...onName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.timer.clearTimer()。 Parameters calle...
来源: Laya3.0_api 发布时间: 20231115
...l data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使用结构如:[p],其他的单个参数 p ,可以直接传入参数 p。 Returns ...
来源: Laya3.0_api 发布时间: 20231115
...onName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void canPlayType canPlayType(type: string): CanPlayTypeResult Defined in laya/media/VideoNode.ts:132 检测是否支持播放指定格式视频。 Parameters type: string "mp4","ogg","webm","m3u8"等...
来源: Laya3.0_api 发布时间: 20231115
...l data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使用结构如:[p],其他的单个参数 p ,可以直接传入参数 p。 Returns ...
来源: Laya3.0_api 发布时间: 20231115
...的是精灵锚点/轴心点所处画布的位置。Position有x和y两个参数,以画布的左上角为原点,从左指向右为x轴正向,从上指向下为y轴正向。 2.2.2 大小Size 精灵的大小是指精灵的宽(W)和高(H),单位是像素。 2.2.3 锚点 Anchor 在讲解...
来源: Laya3.0_文档 发布时间: 20251010
...,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。 Sprite localToGlobal(point:Point, createNewPoint:Boolean = false, globalNode:Sprite = null):Point 把本地坐标转换为相对stage的全局坐标。 Sprite off(type:String, caller:*, listener:Function, onc...
来源: Laya2.0_api 发布时间: 20190513
...te _prepareToScene():Boolean[override] 更新平行光相关渲染状态参数。 DirectionLight addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComp...
来源: Laya2.0_api 发布时间: 20190513
...2D着色器材质,不设置引擎会使用默认材质。 粒子系统 参数模式 在开始讲解粒子系统各模块之前,我们先来讲解一下粒子属性的参数模式。 Constant:设置属性的常量值,该值在粒子整个生命周期内不会发生变化。 TwoConstants:设...
来源: Laya3.0_文档 发布时间: 20251010
... String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标提示<b>粗体</b><br>换行"; //自定...
来源: Laya3.0_api 发布时间: 20231115