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

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

31. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 70%]

...么写的 yaorao • 2018-03-30 11:29 Laya.loader.load([ { url: "res/common@atlas0.png", type: Loader.IMAGE }, { url: "res/common.fui", type: Loader.BUFFER }, { url: "res/game@atlas0.png", type: Loader.IMAGE }, { url: "res/game.fui", type: Loader.BUFFER }, { u...

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

32. 分享一个自己做的游戏公告功能,跑马灯效果 [ 68%]

...= "" } } /** 创建背景 */ _createBg() { let bg = new Image() bg.skin = 'common/bg.png' bg.pos(20,0) bg.width = 1180 bg.height = 55 bg.sizeGrid = "2,2,2,2" bg.alpha = 0.7 bg.zOrder = 1 this.addChild(bg) } /** 创建喇叭 */ _createHorn(){ let horn = new Image() horn.zOrder = 2 horn.loadImage('com...

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

33. Laya+Matter导出wx小程序碰到的问题 [ 68%]

...前面步骤3导出目录,然后编译,报错: Cannot read property 'Common' of undefined TypeError: Cannot read property 'Common' of undefined 具体错误堆栈和对应代码位置见附件1   分析:  上述错误是找不到Matter变量定义,实际上替换的Matter.js在window域...

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

34. List滚动条问题 [ 68%]

...0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} // 背景 var bg_image = new Laya.Image(); bg_image.skin = "res/popupwnd/market_item_bg.png"; bg_image.pos(0, 0); bg_image.size(312, 462); this.addChild(bg_image); // ...

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

35. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 66%]

...问题!!!!!!!!! 2.13版本 import { TableMgr } from "../common/table/TableMgr"; import { BaseWin } from "../common/windows/BaseWin"; import Const from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;   ...

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

36. Mesh网格-网格加载 [ 66%]

...ls.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_N...

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

37. VR场景-VR地球 [ 65%]

...e.models.SkyBox; import laya.display.Stage; import laya.utils.Stat; import common.CameraMoveScript; import common.VRCameraMoveScript; public class VRScene1 { private var rotation:Vector3 = new Vector3(0, 0.002, 0); public function VRScene1() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SC...

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

38. 为什么导入脚本没有此模块 [ 64%]

...么导入脚本没有此模块 导入 import CameraMoveScript from "./common/CameraMoveScript";脚本显示没有此模块 附件 : --> 2020-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折...

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

39. 材质-BlinnPhong材质加载 [ 62%]

...ls.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class BlinnPhongMaterialLoad { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function BlinnPhongMaterialLoad() { Laya3D.init(0, 0, tr...

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

40. 项目运行寻找不存在文件 [ 62%]

...up.js”: 找不到文件(file:///d:/LayaAirIDETwo/resources/electron.asar/common/atom-binding-setup.js)。 2019-02-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 152*****560 赞同来自:   2019-02-19 0 0 分...

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