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

大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0103 秒)

1111. 【简单跑酷--JS版】---Lv.3 添加地板 [ 39%]

..."res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Floor.js 开始编写代码 这里 我们想一下地板有哪些功能? 1、自身从...

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

1112. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 39%]

...g.png", type: Laya.Loader.IMAGE }, ];    Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));     RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务...

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

1113. laya.ui.List_API3.0 [ 38%]

...了一个 List 实例。 package { import laya.ui.List; import laya.utils.Handler; public class List_Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load([...

来源: Laya3.0_api 发布时间: 20231115

1114. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...var sp=new Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res...

来源: Laya3.0_文档 发布时间: 20251010

1115. laya.ui.Dialog_API3.0 [ 38%]

...一个 Dialog 实例。 package { import laya.ui.Dialog; import laya.utils.Handler; public class Dialog_Example { private var dialog:Dialog_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的...

来源: Laya3.0_api 发布时间: 20231115

1116. [BUG]刚体约束问题,移动后约束混乱! [ 38%]

...l();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5,...

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

1117. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 37%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个wor...

来源: Laya2.0_文档 发布时间: 20210715

1118. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 37%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...

来源: Laya2.0_文档 发布时间: 20210715

1119. 3D中如何限制角色的行走区域? [ 37%]

...esouLoaded (/Users/admin/layaA4/layaA4/bin/js/bundle.js:8825:123)     at Handler.__proto.runWith (/Users/admin/layaA4/layaA4/bin/js/bundle.js:2162:42)     at onComplete (/Users/admin/layaA4/layaA4/bin/js/bundle.js:43827:16) 2019-07-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

1120. laya.ui.TextInput_API3.0 [ 36%]

...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...

来源: Laya3.0_api 发布时间: 20231115