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

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

291. LayaAirNative初始化的4个问题 [ 57%]

...945-27945/com.twand.kozhanji I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$6>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail; 06-27 18:03:47.977 27945-27945/com.twand...

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

292. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 57%]

...文件后重试? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp);...

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

293. 自己创建的box作为tab,为啥没有点击事件啊? [ 57%]

...ssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null,...

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

294. 更新最新版layaNative0.98 返回键问题 [ 57%]

...08-08 16:52 浏览: 1006 关注: 2 人 vincent • 2017-08-08 16:51 static class layaGameListener implements ILayaEventListener { public Activity activity; @Override public void ExitGame() { Log.i("=======", "======exit"); activity.finish(); activity = null; //mLayaEngine.onDestr...

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

295. IOS 二次开发 callbackToJSWithClass, JS没有收到OC的回调 [ 57%]

IOS 二次开发 callbackToJSWithClass, JS没有收到OC的回调 AS3 代码: var GRIPMgr:IPlatformClass; GRIPMgr = Laya.PlatformClass.createClass("AppUtil"); GRIPMgr.callWithBack(function(n):void{alert(n)},"getDeviceIDInKeychain");   [size=14]IOS代码:[/size]  +(void)getDeviceIDInKeychain...

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

296. Laya3D场景加载问题 [ 57%]

...载问题 测试内容:加载3D场景   代码如下: export default class TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.crea...

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

297. LayaAir和LayaNative 交互问题 [ 57%]

... zmc1220 赞同来自: js的: // a、创建Test类 var Test=Laya.PlatformClass.createClass("com.layabox.test.Test"); // 这个名字要与下面声明的Java的类名匹配. 包名+类名 //var a=false; var a = true; // Test.call("openlight",a); // 注册手指按下事件 document.addEventListene...

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

298. 视频Demo播放问题 [ 57%]

...没有报错 zl18510521186 • 2018-03-28 16:36 就有一个Warning!,this class[MiniAdpter] already exist: Object {} 这个,其他的没有

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

299. 关于3d项目中component的问题 [ 57%]

...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...

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

300. 设置pivot后,精灵位置显示位置不正确 [ 57%]

...14,设置了sprite的pivot和pos,结果位置不正确 // 程序入口 class GameMain { private sp: Laya.Sprite; constructor() { Laya.init(2000, 1500); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height)...

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