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

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

1. ReferenceError: Laya3D is not defined? [ 100%]

.../bundle.js:11:460     Laya3D.init(600, 600,true); Laya.Stat.show(); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;   Laya.Scene3D.load("LayaScene_Main/Conventional/Main.ls", Laya.Handler.create(null, function(scene:Laya.Scene3D):void { Laya.stage.add...

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

2. this.bitmap.activeResource is not a function [ 99%]

...//开放域 this._openZone = new Laya.Sprite(); } this._openZone.size(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMin...

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

3. 使用插件导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function [ 98%]

...not a function。 加载代码部分如下: Laya3D.init(1000, 800); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //加载插件导出的场景。 var scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(...

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

4. ReferenceError: Loading_fly is not defined [ 98%]

...gOnSide = false; this.diango = new Laya.Dialog(); this.diango.width = Laya.stage.width; this.diango.height = Laya.stage.height; var loading_array = []; for(var i = 1; i < 28; i++ ){ loading_array.push('loading/'+ i +'@2x.png',) } Laya.Animation.createFrames(loading_array, 'loading') this.fly = ne...

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

5. 报错,这不是个构造函数 "StartPage is not a constructor" [ 94%]

...ple: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GameP...

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

6. parameter 2 is not of type 'WebGLTexture' [ 94%]

...raphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲...

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

7. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 93%]

...his.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: 离开这个有videoElement页面 也做了 Laya.stage.off(La...

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

8. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 93%]

...= new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错误,如下:...

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

9. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 91%]

...    let partIns = new Laya.Particle2D(settings);         Laya.stage.addChild(partIns);         // 开始发射粒子         partIns.emitter.start();         // 播放         partIns.play();          partIns.x = Laya.stage.width / 2;       ...

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

10. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 91%]

...variable is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class Laya...

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