大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)
Laya_社区(493) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(22) Laya2.0_示例(7) Laya_示例(4)
...s.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLine1:TimeLine; private var timeLine2:TimeLine; priva...
来源: Laya_社区 发布时间: 20161207
...tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180514
...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...
来源: Laya2.0_文档 发布时间: 20210714
...; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load(...
来源: Laya_社区 发布时间: 20161026
...ck/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化...
来源: Laya_社区 发布时间: 20191209
...a.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Mai...
来源: Laya2.0_文档 发布时间: 20210714
...w.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup = group; self.nigrop = new NativeGroup(); self.nativeGroup.addComponentIntance(self.nigrop); self.nativeGroup.zOrder = 99999...
来源: Laya_社区 发布时间: 20200630
...dMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, completeHandler)); } private function completeHandler(e:*=null):void { createImage(); } 2017-02-24 1 0 分享 微博 QZONE 微信 hamletborn 赞同来自: 谢谢! 2017-02-24 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20170224
...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
...: ResourceVersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对: 它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/s...
来源: Laya_社区 发布时间: 20180115