大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...摇报错,就解决方案 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2021-12-08 14:57 浏览: 3698 关注: 2 人 northTg • 2021-12-09 11:09 非常感觉提供帮助 ,我这边提供demo的时候发现最新的库是没有问题的 换掉全部相关库后...
来源: Laya_社区 发布时间: 20211207
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...手机后显示黑屏 不设置自动竖屏又正常 public function LayaSample() { //初始化引擎,建议增加WebGl模式 Laya.init(720, 1280,WebGL); // Stat.show(); //全屏不等比...
来源: Laya_社区 发布时间: 20180105
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115
... await dcc.updateAll((p)=>{/*进度提示*/}) 4.5 使用zip更新 async function downloadBigZip(url:string):Promise<string|null>{ let cachePath = conch.getCachePath(); let localfile = cachePath+url.substring(url.lastIndexOf('/')); return new Promise((resolve,reject)=>{ downloadBigFile(ur...
来源: Laya3.0_文档 发布时间: 20251010
...ath:String = "res/fighter/fighter.json"; private var fly:Animation; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } p...
来源: Laya_社区 发布时间: 20160610
...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...行打包,提示如下错误。 Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 网上搜索答案,有的说是因为在tsconfig中,将target调整成了es6就不可以运行了,但是我的代码使用了一些es6的特性,请问应该如...
来源: Laya_社区 发布时间: 20170604
...prite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();/...
来源: Laya3.0_api 发布时间: 20231115