大约有 347 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(234) Laya3.0_文档(36) laya_api(28) Laya2.0_文档(22) Laya3.0_api(17) Laya2.0_api(6) Laya2.0_示例(2) Laya_示例(2)
...为{0:undefined}。 /** *得到tile自定义属性 *@param index 地图块索引 *@param id 具体的TileSetID *@param name 属性名称 *@return */ __proto.getTileProperties=function(index,id,name){ if (this._tileProperti...
来源: Laya_社区 发布时间: 20190218
...物理碰撞的开始时,引擎都会调用一次的事件方法。 * @param other 碰撞目标对象的碰撞体以及所属节点对象等信息 * @param self 自身的碰撞体以及所属节点对象等信息(该参数只有2D物理有,3D物理只有other) * @param contact 物理引擎...
来源: Laya3.0_文档 发布时间: 20251010
...etCurrentPosition()只触发一次。 /** * 获取设备当前位置。 * @param onSuccess 带有唯一<code>Position</code>参数的回调处理器。 * @param onError 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_...
来源: Laya3.0_文档 发布时间: 20251010
...this.onData; this.handlers[Package.TYPE_KICK] = this.onKick; } public init(params,cb:Function):void{ console.log("init",params); this.initCallback = cb; var host = params.host; var port = params.port; var uid = params.session_id; var user_name = params.user_name; // //var url = 'ws://' + host; //if(...
来源: Laya_社区 发布时间: 20180119
... } /** * 初始化此类。 * @param texture 纹理对象。 * @param vb 顶点数组。 * @param ib 顶点索引数组。 */ public init(texture: Laya.Texture, vb: Array<number> = null, ib: Array&...
来源: Laya_社区 发布时间: 20170606
...D[static] 加载Texture2D。 Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private Texture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 Texture2D recreateResource():void[override] 重新创建资源,如果异步创建中...
来源: laya_api 发布时间: 20170929
...rtyDefined By eventName : String 事件触发名称。AnimationEvent params : Array 事件触发参数。AnimationEvent time : Number 事件触发时间。AnimationEventPublic Methods MethodDefined By AnimationEvent() 创建一个 AnimationEvent 实例。 AnimationEventProperty Detaile...
来源: Laya2.0_api 发布时间: 20190513
...线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "p...
来源: Laya_社区 发布时间: 20180417
destroy节点后,报错 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } } 或者 /* 从舞台移除模型对...
来源: Laya_社区 发布时间: 20191119
...夜 赞同来自: 使用下面的方法即可 /** * - 骨骼挂点 * @param nodeName * @param root * @param Sprite3D */ public static link2Node(nodeName: string, root: Laya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = r...
来源: Laya_社区 发布时间: 20190918