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

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

21. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 77%]

...let alive = new Array();         alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE});          Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish));      }      private LoadFinish(success:boolean):void     {        ...

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

22. 关于laya打包找不到配置 [ 75%]

...er.nativefiles = ["wxlocal","res/atlas/houzi.atlas","res/atlas/houzi.png","common/tishi.png","common/bg.png","ui.json","newLb/bg031.png"]; 只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录,即便使用了URL.basePath,对于包含在nati...

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

23. 关于资源发布目录、html发布目录修改后路径报错问题 [ 74%]

...候提示我找不到那张图片。 真实路径是:bing/resource/uires/common/bg.jpg 加载爆出的错误路径是:bin/common/bg.jpg   请问下我是有哪个设置没有弄么?比如unpack.json。对于这个文件应该怎么处理? 附件 : --> 2016-12-10 添加评论 免费帖 --> ...

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

24. js怎么主动调用AS定义的静态变量? [ 74%]

...3-21 17:11 浏览: 1247 关注: 2 人 vincent • 2017-03-21 17:41 //class common.dataModule.DataSingleton var DataSingleton=(function(){ function DataSingleton(){}; __class(DataSingleton,'common.dataModule.DataSingleton'); DataSingleton.dxMerchantID=20000020; DataSingleton.dxAccount=null DataSingle...

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

25. 为什么HMLDivElement会在这个地方换行? [ 72%]

...hat.contextHeight;   这是设置参数  文本内容是 "<img src = 'common/img_chat_5.png' style = 'width:53px;height:27px'></img><span style = 'color:#ff8135;font:22px;valign:top'>[魏]幽州单稚然:sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss</sp...

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

26. matter.js引入文件在哪里?在工程没有找到 [ 72%]

matter.js引入文件在哪里?在工程没有找到 var Common = require('../core/Common'); var Composite = require('../body/Composite'); var Bounds = require('../geometry/Bounds'); var Events = require('../core/Events'); var Grid = require('../collision/Grid'); var Vector = require('../geometry...

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

27. Laya集成Matter.js库layaSprite水平翻转无法显示的bug [ 71%]

...码如下: var ball_sprite = new Laya.Sprite(); ball_sprite.loadImage("common1/btn_new.png"); Laya.stage.addChild(ball_sprite); ball_sprite.scale(-1, 1, true); // !!! 如果屏蔽此行代码,球能正常显示  var ballOptions = { layaSprite:ball_sprite,                 render:...

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

28. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 70%]

...ativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是BMiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录**,即便使用了URL.basePath,对于...

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

29. layacmd mac 系统安装不上,急 [ 70%]

... background-color: rgba(0, 0, 0, 0.9)} span.s1 {font-variant-ligatures: no-common-ligatures} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js > electron@1.8.6 postinstall /usr/local/lib/node_modules/layacmd/node_modules/elec...

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

30. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 70%]

...ativefiles = [ "wxlocal", "res/atlas/houzi.atlas", "res/atlas/houzi.png", "common/tishi.png", "common/bg.png", "ui.json", "newLb/bg031.png" ]; ``` **只要是MiniAdpter.nativefiles里存在的目录名或文件,引擎会自动将该目录视为本地目录**,即便使用了URL.basePath,对于...

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