大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
...目的构建与SDK的导入都完成了,现在开始敲代码 AndroidManifest.xml<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.layabox.game" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion...
来源: Laya_社区 发布时间: 20170722
...化期间创建,则_parseLines必挂,, _parseLines函数li里面的 if (Render.isConchApp){ measureResult=/*__JS__ */window.conchTextCanvas.measureText(this._testWord); }else { measureResult=Browser...
来源: Laya_社区 发布时间: 20190425
...EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ groupName = url; } Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName); }...
来源: Laya_社区 发布时间: 20180425
...ll); return false; }, //完成回调 (curlret:number,httpret:number)=>{ if(curlret!=0 || httpret<200||httpret>=300){ onEvent('downloadError'); //throw 'download error'; }else{ onEvent('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new Zi...
来源: Laya_社区 发布时间: 20180108
... let touchCount = this.scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if(this.isTwoTouch){ return; ...
来源: Laya_社区 发布时间: 20190531
为什么说没有 playByFrame方法 var anifish = fish.addComponent(Laya.SkinAnimations); anifish.templet = Laya.AnimationTemplet.load("fish/denglongyu/denglongyu.lsani"); anifish.player.playByFrame(0,1.0,2147483647,0,30,30);//游动 // anifish.player.playByFrame(0,1.0,2147483647,40,72,30);//...
来源: Laya_社区 发布时间: 20170926
...ction onBoyClick(e) { //点击后小人会放大缩小 var boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } function onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = mode...
来源: Laya_示例 发布时间: 20251209
...GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && La...
来源: Laya_社区 发布时间: 20181027
...式: ```javascript var os = conchConfig.getOS(); var bridge; var obj = {}; if (os == "Conch-ios") { bridge = PlatformClass.createClass("JSBridge");//创建脚步代理 } else if (os == "Conch-android") { //需要完整的类路径,注意与iOS的不同 bridge = PlatformClass.createClass("demo.JSBr...
来源: Laya2.0_文档 发布时间: 20210714
... */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type); function back(code){ LayaManager.showTextTi...
来源: Laya_社区 发布时间: 20190524