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

大约有 820 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)

341. 发现TimeLine的一些问题,像是BUG [ 62%]

...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

342. Tiled Map 为啥始终显示在最上面,求解 [ 62%]

...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

343. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 62%]

...反射贴图 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

344. 关于as版的Animation.createFrames()不能工作? [ 62%]

...; 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

345. laya3D导入动画材质在安卓手机电脑上显示正常,在苹果手机显示异常 [ 62%]

...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

346. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 62%]

...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

347. Laya Label text不显示 [ 62%]

...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

348. 为什么Tiledmap总是显示于stage的图片之上? [ 62%]

...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

349. LayaNative端使用.ttf字体 [ 62%]

...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

350. 最新的ResourceVersion发布以后加载的url不正确 [ 62%]

...: ResourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对:   它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/s...

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