大约有 201 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)
...无法生效 比如 无法定位到LayaSample.js中的这个函数 function LoadResComplete() { var loginView = new LoginView(); loginView.init(); Laya.stage.addChild(loginView); } LoginView.js中的init函数 LoginView.prototype.init...
来源: Laya_社区 发布时间: 20170317
3Ddemo加载Unity导出场景报错resou._removeReference is not a function import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本...
来源: Laya_社区 发布时间: 20190426
...i.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '_create' of null at Animation._proto.timerLoop(file:///f:/......
来源: Laya_社区 发布时间: 20171028
...个版本修复, chaincollider的 方法 override protected function getDef():* { if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } ...
来源: Laya_社区 发布时间: 20181116
...l/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.tra...
来源: Laya_社区 发布时间: 20180104
...a.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String...
来源: Laya_社区 发布时间: 20170807
...sourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress...
来源: Laya_社区 发布时间: 20180710
...oPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加载资源的时候,分包文件夹名称前也需要加“ / ” #### 2.2 资源分包 资源分包适合页...
来源: Laya2.0_文档 发布时间: 20210715
...adSubpackage({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 }, fail: function(res) { // 分包加载失败通过 fail 回调 } }) ``` 加载成功的同时,wx.loadSubpackage 会返回一个 [LoadSubpackageTask](https://de...
来源: Laya2.0_文档 发布时间: 20210715
..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...
来源: Laya_社区 发布时间: 20160722