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

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

441. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 71%]

...入口 module laya {     import Loader = Laya.Loader;     import Handler = Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json";         private ROBOT_TEXT...

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

442. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 71%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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

443. 预加载音频文件遇到的问题 [ 71%]

...//加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.create(this, onComplete)); } function onComplete(){...

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

444. Laya的Scene和View什么区别? [ 71%]

...案例凹多边形的问题 var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Laya native1.0.7, 引擎1.7.14beta,多行文本不换行 laya开发的3d跑酷 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc...

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

445. protobuffer加载失败 [ 71%]

...proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto 但是...

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

446. 微信资源加载问题 [ 71%]

...服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 ...

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

447. Laya.Geolocation使用报错 [ 71%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误...

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

448. graphics使用matrix的异常情况 [ 71%]

...使用matrix的异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); }))...

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

449. 分享-js资源进度加载 [ 71%]

...las/Progress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsL...

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

450. 网络和格式-Socket [ 71%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...

来源: Laya2.0_示例 发布时间: 20260820