大约有 557 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
...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
...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
...览器编译出来的“不受支持的命令行”弹窗 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 请问Loader.load支持支持swf格式的预加载吗? 请问Laya支持什么样的swf,我运行...
来源: Laya_社区 发布时间: 20180217
...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...
来源: Laya_社区 发布时间: 20180410
...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
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
... 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
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
...得场景内的元素 layaAir TS项目如何引用protoBuf库? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 怎么实现同一个工程内分包? 微信小游戏中访问带空格的文件出错 问题状态 最新活动: ...
来源: Laya_社区 发布时间: 20180301
...{ 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