大约有 1,751 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(1103) Laya2.0_文档(182) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(30)
...t(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ console.info("onLoaded"); this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.w...
来源: Laya_社区 发布时间: 20171125
... import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectang...
来源: Laya_社区 发布时间: 20180428
...Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr...
来源: Laya_社区 发布时间: 20161219
...aya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIM...
来源: Laya_社区 发布时间: 20171204
...:8}; Laya.Tween.to(origin,target,500).update = new Laya.Handler(null,()=>{ console.log(origin); //如果想对3d对象缓动,可以在此对3d对象进行赋值 // 如下 /** ...
来源: Laya_社区 发布时间: 20200817
...le.js:278) at game_scene.onPreLoadFinish (js/bundle.js:210) at Handler.runWith (libs/laya.core.js:1009) at libs/laya.core.js:19086 at Handler.runWith (libs/laya.core.js:1011) at ResInfo.<anonymous> (libs/laya.core.js:19116) bundle 第278行信息: var sp =...
来源: Laya_社区 发布时间: 20200326
... Supermang42 赞同来自: this.mBitmapFont.loadFont( "ziti.fnt", new Laya.Handler( this, onLoaded ) ); 上面的 "ziti.fnt" 路徑錯誤,需寫完整路徑。 Example : 假設fnt檔案跟png檔案都放在res資料夾底下,那你就應該寫這樣。 this.mBitmapFont.loadFont( "res/zi...
来源: Laya_社区 发布时间: 20170811
...:import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE...
来源: Laya_社区 发布时间: 20170720
...ya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() {...
来源: Laya_社区 发布时间: 20160722
...ane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.directi...
来源: Laya_示例 发布时间: 20260820