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

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

1931. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 48%]

...x.x = Laya.Browser.width;     gamebox.visible = true;     Laya.stage.addChild(gamebox);     // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,);     Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed))     Tween.to(gamebox,{x:0},1000);     console...

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

1932. laya.ui.ScaleBox_API3.0 [ 48%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

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

1933. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 48%]

...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```

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

1934. laya.ui.Box_API3.0 [ 48%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

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

1935. as hello world 背景还是黑色 [ 48%]

... //sp.fontSize = 55; sp.pos(100, 100) ; //sp.color = "#000000"; Laya.stage.addChild(sp); } } } chrome 下查看源代码 <html> <head> <meta charset='utf-8'/> <title>www.layabox.com</title> <meta name='renderer' content='webkit'> <meta name='viewport' content='...

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

1936. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...

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

1937. laya.ui.AdvImage_API3.0 [ 48%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroy destroyChildren dispose drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce f...

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

1938. box2d引擎报错问题 [ 48%]

...s.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } createEffect(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); a...

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

1939. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 48%]

...景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”...

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

1940. JSON文件加载成功后,怎么解析成Object对象 [ 48%]

... txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL); Laya.loader.load(jsonURL, Ha...

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