• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 900 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)

821. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 46%]

...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...

来源: Laya_社区 发布时间: 20170303

822. 【简单跑酷--JS版】---Lv.6 终篇 [ 46%]

... = 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

823. 【简单跑酷--JS版】---Lv.3 添加地板 [ 46%]

...要预加载 上一节有讲到 修改加载的地方 //加载图片 Laya.loader.load(["res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Fl...

来源: Laya_社区 发布时间: 20160728

824. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 46%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

来源: Laya_社区 发布时间: 20190307

825. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 45%]

...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...

来源: Laya_社区 发布时间: 20210111

826. LayaRender渲染含有多个part的Body存在Bug [ 45%]

... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  sp = new Laya.Sprite(); ...

来源: Laya_社区 发布时间: 20180625

827. 动画-旧版骨骼动画 [ 45%]

...SkinAnimation(spirit3D._childs[i], index); } private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Bu...

来源: Laya_示例 发布时间: 20241001

828. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 45%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var b...

来源: Laya2.0_文档 发布时间: 20210715

829. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 44%]

...tyPlug 1.7.13 导出刚体动画无效 3D模型无法修改scale? 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2019-01-11 17:15 浏览: 2423 关注: 2 人 源 • 2019-01-11 18:17 清除所有力的效果不好是指什么? 叶子 • 2019-01-...

来源: Laya_社区 发布时间: 20190111

830. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 44%]

...性后,icon就没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();   ...

来源: Laya_社区 发布时间: 20180718