大约有 212 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(127) Laya3.0_api(22) Laya3.0_文档(17) Laya2.0_文档(16) Laya_示例(12) Laya2.0_示例(12) laya_api(3) Laya2.0_api(3)
...览: 3508 关注: 3 人 逸辰 • 2023-07-19 22:52 onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() =&...
来源: Laya_社区 发布时间: 20230713
... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...
来源: Laya_社区 发布时间: 20160803
...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...
来源: Laya_示例 发布时间: 20251130
...载资源,此处添加button和panel垂直滚动条的皮肤使用 Laya.loader.load(['button-4.png','ui/vscroll.png','ui/vscroll$bar.png','ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要...
来源: Laya_社区 发布时间: 20170601
...st在firefox里面执行正常在ios出现err 3d Tween使用不执行 Laya.loader.create 进度回调函数执行两次 2.6版本阴影在浏览器正常,在真机上直接没了?求解答 ios webgl开启后 切换到后台再回来直接重启app 问题状态 最新活动: 2018-03-05 10:33 浏...
来源: Laya_社区 发布时间: 20180305
...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...
来源: Laya2.0_文档 发布时间: 20210715
...有问题 跳地图时我会清除地图上的clip 调用如下方法 Laya.loader.clearRes(j,true); 但是如果再次回到这个地图 clip特效就不显示了 最终查到clip的loadComplete方法var clips:Array = WeakObject.I.get(key); 这句的clips里面的资源有问题 应该是已经被...
来源: Laya_社区 发布时间: 20171128
....id = "photo"; body.appendChild(input); Laya.loader.load("comp/button.png"); let button = new UIButton("comp/button.png","点我"); button.labelSize = 30; button.size(300,100); button.centerX = 0; ...
来源: Laya_社区 发布时间: 20161114
...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load().on(Event.ERROR,this,onError); 试一下 2018-01-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相关问题 请问LayaAir中如何使...
来源: Laya_社区 发布时间: 20180130
...ivate function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切...
来源: Laya_社区 发布时间: 20170209