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

大约有 117 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

21. 微信小游戏IDE加载位图字体,提示错误 [ 88%]

...体,提示错误 错误提示如下:xml.getElementsByTagName is not a function TypeError: xml.getElementsByTagName is not a function     at BitmapFont.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17)     at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11) ...

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

22. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 88%]

...ptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function [b]Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Sprite3D.__proto.onAsynLoaded (http://127.0.0.1...

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

23. js进度,进度,js场景进度效果 [ 87%]

js进度,进度,js场景进度效果 new function() { var className = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky...

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

24. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 87%]

...nds Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Event.MOUSE_DOWN,this,scaleSmall); //添加鼠标抬起事件侦听...

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

25. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 87%]

...Width=false; var windowOnWidth=true; var isIos=true; window.top.onresize = function () { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { isIos=false; }else if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){ isIos=true; } var windowWidth=true; if(window.doc...

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

26. 微信小游戏中不能加载proto文件 [ 86%]

...  request:fail invalid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoB...

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

27. 关于资源加载的问题 [ 86%]

..., Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没...

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

28. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 85%]

...class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 public function set owner(v:Sprite):void { _owner = v; //由于时序问题,我们需要在此...

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

29. [临时解决]bug?加载sk问题 [ 84%]

...,代码大概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.prel...

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

30. 飞机大战出现的问题注册了类New的时候报错未定义 [ 84%]

...机大战出现的问题注册了类New的时候报错未定义 var Game=(function(){ (function Game(){ Laya.init(400,852); this.bg = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (func...

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