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

大约有 557 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)

261. LayaAir IDE 语言包的使用? [ 68%]

...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...

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

262. 分享:List相关(Item增删功能) [ 68%]

...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list...

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

263. 3种支持语言在选择上有讲究吗? [ 68%]

...览器编译出来的“不受支持的命令行”弹窗 请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 请问Loader.load支持支持swf格式的预加载吗? 请问Laya支持什么样的swf,我运行...

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

264. 小游戏字体bug:使用位图字体,加载解析出错。使用ttf字体在小游戏中无效果 [ 68%]

...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...

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

265. 2.0版本,Particle2D is not a constructor [ 67%]

...rt default class RunMain extends Laya.Sprite{ constructor(){ super(); Laya.loader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计...

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

266. 3D开启多线程报错 [ 67%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

267. native2.0压缩纹理如何使用 [ 67%]

... 2018-12-20 0 1 分享 微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就...

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

268. htmlCanvas 像素级操作 [ 67%]

htmlCanvas 像素级操作 function showSprite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片...

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

269. .lh 文件不能在同一js文件内重复引用吗? [ 67%]

...得场景内的元素 layaAir TS项目如何引用protoBuf库? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 怎么实现同一个工程内分包? 微信小游戏中访问带空格的文件出错 问题状态 最新活动: ...

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

270. 版本管理什么用 [ 67%]

...{ url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS },                 { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT },             ];  手动修改了JS代码!! 可以成功...

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