大约有 1,651 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0052 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(67) Laya_示例(58) Laya2.0_示例(54)
...们也解决了,直接贴代码吧 // 各种浏览器兼容 var hidden:String = "hidden", state:String = "visibilityState", visibilityChange:String = "visibilitychange"; var document:* = window.document; if (typeof document.hidden !== "undefined") { visibilityChange = "visibilitychange"; state = "...
来源: Laya_社区 发布时间: 20171011
...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Static CULLINGMODE_ALWAYSANIMATE CULLINGMODE_ALWAYSANIMATE: number = 0 Defined in laya/d3/component/Animator.ts:53 裁剪模式_始终播...
来源: Laya3.0_api 发布时间: 20231102
...che(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && this.interval > 0){ this.timerLoop(this.interval,this,this._frameLoop,null,true); } } __proto...
来源: Laya_社区 发布时间: 20161006
... present in the dictionary. System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]].get_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) 附件是可复现问题的U3d项...
来源: Laya_社区 发布时间: 20181218
...* * @private * 分析文本换行。 */ protected function parseLines(text:String):void { //自动换行和HIDDEN都需要计算换行位置或截断位置 var needWordWrapOrTruncate:Boolean = wordWrap || this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWi...
来源: Laya_社区 发布时间: 20190213
...) * @param progress 加载进度回调(可选) */ static open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [close...
来源: Laya3.0_文档 发布时间: 20251010
...plication/x-www-form-urlencoded 代码如下: static httpRequest(method:string, url:string, data:any, headers:Array<string>, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => {...
来源: Laya_社区 发布时间: 20170123
...修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018-01-15 0 0 分享 微博 QZONE 微信 liwenhu...
来源: Laya_社区 发布时间: 20180115
...wStyle : *Color numColor : uint uint 型颜色值。Color strColor : String 字符串型颜色值。ColorPublic Methods MethodDefined By Color(str:*) 根据指定的属性值,创建一个 Color 类的实例。 Color create(str:*):Color[static] 根据指定的属性值,创建并返...
来源: laya_api 发布时间: 20170422
...交 1 个回复 Laya_Aaron 赞同来自: public static var basePath:String = ""; /**根路径。*/ public static var rootPath:String = ""; 这两个都设置一下 2018-09-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20180913