大约有 825 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0067 秒)
Laya_社区(495) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(25) Laya2.0_示例(7) Laya_示例(4)
...载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图和1张打包图 打印...
来源: Laya_社区 发布时间: 20170225
... Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addCo...
来源: Laya_社区 发布时间: 20190506
...eError: ProgressBar is not a constructor at onLoadComplete (game.js:81) at Handler.__proto.runWith (laya.core.js:686) at ResInfo.loadComplete (laya.core.js:12634) at EventHandler.__proto.runWith (laya.core.js:687) at ResInfo.__proto.event (laya.core.js:465) at LoaderManager.__proto._endLoad (laya.co...
来源: Laya_社区 发布时间: 20180316
...件。我把全部源码贴出来吧 package { import laya.utils.Handler; import laya.display.Text; import laya.display.Animation; import laya.webgl.WebGL; import laya.media.Sound; import laya.webgl.shapes.Ellipse; import laya.display.Stage; ...
来源: Laya_社区 发布时间: 20170921
...ap/map.json",new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); } 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20170918
...ya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/...
来源: Laya2.0_文档 发布时间: 20210714
...p://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获...
来源: Laya2.0_文档 发布时间: 20210715
...= Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); //加载协议文件,相当于加载那个资源 ProtoBuf.load("../laya/proto/awes...
来源: Laya_社区 发布时间: 20170216
...BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new Laya.Handler(this.onLoaded)); } private onLoaded():void { this.init(); } private init():void { this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName, this.mBitmapFont); var txt:Laya.Text = new Laya.Text()...
来源: Laya_社区 发布时间: 20171028
...nnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, 0.5); material.renderMode =...
来源: Laya_社区 发布时间: 20190126