大约有 307 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0049 秒)
...aya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("...
来源: Laya_社区 发布时间: 20170523
...e.lh")) as Sprite3D; layaScene.once(Event.HIERARCHY_LOADED, this, function():void{ var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D; var animator:Animator = meshSprite.addComponent(Animator) as Animator; var clip:AnimationClip=AnimationClip.load("res/La...
来源: Laya_社区 发布时间: 20180208
...行后就会报下面的错:Error: Mismatched anonymous define() module: function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const t = require("./test/TestExportClass"); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); c...
来源: Laya_社区 发布时间: 20171116
...acket_iidiid = 4; } 通过 ProtoBuf.load("protocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_select_gate"); var newMessage:any = msgDefine.create(); } 然后发现里面的成...
来源: Laya_社区 发布时间: 20170914
...动生成的ui代码报错 导微信小程序报错window.focus is not a function 小游戏项目 加载有中文的json文件 报错 官网示例摇一摇报错,就解决方案 runtime运行报错! 用了ByteArray的zlib.min.js后报错 问题状态 最新活动: 2018-11-26 11:19 浏览: 2915 ...
来源: Laya_社区 发布时间: 20181123
...eCMDNode = process.argv[1].indexOf("layaair2-cmd") > -1 ? true : false; function useOtherNode(){ return useIDENode||useCMDNode; } //获取Node插件和工作路径 let ideModuleDir = useOtherNode() ? process.argv[1].replace("gulp\\bin\\gulp.js", "").replace("gulp/bin/gulp.js", "") : ""; let workS...
来源: Laya_社区 发布时间: 20200918
...18-04-04 10:50 下载个5.0版本的谷歌,stage.on(Event.ROLL_OVER,this,function(){alert(22});一试便知。。 157*****121 • 2018-04-04 10:50 移动端
来源: Laya_社区 发布时间: 20180404
...绘制子域到工程 bt_rank_call_back(body){ this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite()...
来源: Laya_社区 发布时间: 20181217
...加参数吗 prefab添加runtime脚本 comp._addComponentInstance is not a function 2.0 Beta3版本中,runtime脚本的的问题 看腾讯课程碰到的runtime无效问题 IDE界面编辑中最顶层view设置runtime无效 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 问...
来源: Laya_社区 发布时间: 20170427
... at process._tickCallback (internal/process/next_tick.js:61:11) at Function.Module.runMain (internal/modules/cjs/loader.js:745:11) at startup (internal/bootstrap/node.js:266:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3) exit:1 请问这个怎么解决。百度...
来源: Laya_社区 发布时间: 20200513