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

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

271. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 51%]

...           {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         }         private function onAssetLoaded(texture:Texture):void         {             var ape:Sprite = new Sprite;          ...

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

272. laya.display.Scene_API3.0 [ 51%]

...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...

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

273. laya.d3.core.Sprite3D_API3.0 [ 51%]

... Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Sprite3D" Sprite3D constructor _extra _sce...

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

274. laya.ui.View_API3.0 [ 51%]

...ers node: Node Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片...

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

275. laya.ui.Dialog_API3.0 [ 51%]

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

276. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 51%]

...到微信的code数据,始终无法返回数据给Laya层。 方式1:m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello Laya!"); } catch(JSONException e) { e.printStackTrace(); } Log.d("Laya", "======准备...

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

277. Laya3D场景加载问题 [ 51%]

...    onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild...

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

278. laya.ui.ComboBox [ 51%]

...l : String 表示选择的下拉列表项的的标签。 ComboBox  selectHandler : Handler 改变下拉列表的选择项时执行的处理器(默认返回参数index:int)。 ComboBox  sizeGrid : String 当前实例的位图 AutoImage 实例的有效缩放网格数据。 数据格式:"上边...

来源: Laya2.0_api 发布时间: 20190513

279. Timer.clear 方法有问题 [ 50%]

...清理 石圣 • 2018-12-03 11:19 是的 如果改一下Timer里面存储handler的数据结构就可以实现了。这种需求很正常啊 不知道官方为啥说要避免这种写法。可能移除多个相同域的相同方法需要一个遍历操作,性能损耗比较大? 伯恩 • 2018-...

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

280. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 50%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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