大约有 1,800 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1135) Laya2.0_文档(198) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(31)
...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误...
来源: Laya_社区 发布时间: 20181217
...d { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( )...
来源: Laya_社区 发布时间: 20220819
...las/Progress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsL...
来源: Laya_社区 发布时间: 20171217
...ngle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自...
来源: Laya_社区 发布时间: 20171106
...Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyPage2UI); var UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() ...
来源: Laya_社区 发布时间: 20160722
...了。是我哪里设置有问题么 load(url: any, complete?: laya.utils.Handler, progress?: laya.utils.Handler, type?: string, priority?: number, cache?: boolean): LoaderManager; 是因为资源太少么。 2016-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20161010
...n(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else{ RES.getInstance().event(RES.ONLOADERRORRESJSON,arg); } })) } /** * g...
来源: Laya_社区 发布时间: 20161011
...las:BattleScene} ]; //预加载 Laya.loader.create ( this.resArray, Laya.Handler.create(this,this.onPreLoadComplete), Laya.Handler.create(this,this.onProgress), ); } onPreLoadComplete() : void { let sceneUrl = this.resArray[0]["url"]; this.scene = Laya.loader.getRes(sceneUrl) as BattleScene...
来源: Laya_社区 发布时间: 20190323
...有问题 华为手机 SoundManager.playSound("GameSound/aa/bb.mp3", 1,new Handler(this,soundComplete,[aa,bb])); 没有音效 上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 } 2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180314
...ar; import laya.ui.ScrollBar; import laya.ui.VScrollBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ScrollBar { /***垂直滚动条资源**/ private var skins:Array=["../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png"...
来源: Laya2.0_文档 发布时间: 20210715