大约有 1,758 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1080) Laya3.0_api(672) Laya2.0_文档(2) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
...置之后纹理宽高可能会发生变化。 */ __proto.loadImageSource=function(source,premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLCo...
来源: Laya_社区 发布时间: 20190809
...RandomTwoConstant createByRandomTwoGradient Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...------------------------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar....
来源: Laya_社区 发布时间: 20161221
...hakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){conso...
来源: Laya_社区 发布时间: 20180119
...频都不显示了。 下面是 创建视频的主要代码 private function initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Brows...
来源: Laya_社区 发布时间: 20180313
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...-2 浪货界扛把子 • 2018-01-16 12:04 @Monica: window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); // alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); var Test=Laya.PlatformClass.createClass("com.ygames.buyug...
来源: Laya_社区 发布时间: 20180116
... 监听下载过程中的 progress 事件 xhr.addEventListener('progress', function (event: any) { if (event.lengthComputable) { // 计算下载的百分比 var percent = (event.loaded / event.total) * 100; console.log('下载进度: ' + percent.toFixed(2) + '%'); } }); // 设置请求完成后的...
来源: Laya3.0_文档 发布时间: 20251010
...的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayD...
来源: Laya_社区 发布时间: 20180106