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

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

51. 使用HtmlDivElement取不到实际大小 [ 64%]

...ml } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "<div>"; html += "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</...

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

52. Cannot read property 'toDefault' of undefined报错是什么原因 [ 64%]

...sePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Laya.TextureCube.load("skyBox/skyCube.ltc"); this.camera....

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

53. HIERARCHY_LOADED函数不回调 [ 63%]

HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...

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

54. 关于微信小游戏渲染子域图的问题 [ 63%]

...hics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite);   }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpe...

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

55. new Laya.Templet() 时,说这不是一个constructor [ 62%]

...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...

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

56. add PhysicsCollider组件的时候之间运行报错【2.0beta5.1] [ 62%]

...3D = new MeshSprite3D(boxMesh); box3D.addComponent(PhysicsCollider); scene.addChild(box3D); 附件 : --> 2019-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 131*****361 赞同来自: 找到了,F9导入对...

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

57. Laya.loader.load 加载场景报错 [ 61%]

...e(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<anonymo...

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

58. 发布的时候,报错 [ERROR] Cannot read property 'dom_parser' of undefined [ 61%]

... 错误代码: ERROR: Uncaught TypeError: Cannot read property 'addChild' of null, location: /data/user/0/com.vivo.hybrid/app_resource/com.chenxing.vivominigame/jsfile:///C:\Users\74741\AppData\Roaming\Tencent\QQTempSys\OOY5$4OW5H`8`9%(9$)T67M.gifndle.js:0:0        [ERROR] (/opt/...

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

59. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 61%]

...3)         创建Sprite方式:       sp = new Sprite();       addChild(sp);       sp.loadImage("./assets/ico_back.png");   6、定位到 laya.core.js 1438行发现有这样的描述: if (!tex.loaded){       tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,...

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

60. HTMLDivElement中image标签多次赋值报错 [ 60%]

... } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = '<span style="color:black;font-weight:bold;font:24px Arial">  a paragraph from external html.</span>\ <br/>\ <span s...

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