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

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

2611. 发布app(android)后,按后退键显示有问题 [ 65%]

...的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT).show(); new Timer().schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub isExit = false; } },2000); } else { // MobclickAgent.onKillPr...

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

2612. 模仿教程里的打地鼠写的代码,运行报错 [ 65%]

...//加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { function ...

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

2613. 文本-单行输入 [ 65%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

来源: Laya2.0_示例 发布时间: 20251223

2614. laya.utils.ClassUtils [ 65%]

...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils  getRegClass(className:String):*[static] 返回注册 Class 映射。 ...

来源: laya_api 发布时间: 20170929

2615. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 65%]

...约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vec...

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

2616. ts项目加载version.json失败 [ 65%]

...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以显示...

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

2617. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 65%]

...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={"type":"View","props":{"width":720,"height":1280},"compId":2,"child":[{"...

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

2618. laya.display.Node [ 65%]

...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。  method:Function — 结束时的回调方法。 contains()method  public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...

来源: laya_api 发布时间: 20170929

2619. Laya发布安卓接入穿山甲联盟sdk在安卓9.0版本以上无法运行 [ 65%]

...eturn processInfo.processName; } } return null; }if (!Utils.getProcessName(this).equals("YOUR_SECOND_PROCESS_NAME")) { MobileAds.initialize(this); } else { WebView.setDataDirectorySuffix("dir_name_no_separator") } 2020-08-31 0 2 分享 微博 QZONE 微信 邦邦 赞同来自: 已解决 2020-08-31 0 ...

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

2620. 文本-禁止编辑 [ 65%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

来源: Laya2.0_示例 发布时间: 20251223