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

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

81. 微信小游戏开发数据域在舒适化时会报错 [ 69%]

...开放数据域那个项目就这两句代码会报错 Uncaught TypeError: Browser.document.addEventListener is not a function     at Function.AudioSound._initMusicAudio (index.js:10916)     at Function.Browser.__init__ (index.js:6944)     at Object.Laya.init (index.js:365)     at new Footba...

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

82. 发布Oppo小游戏屏幕适配bug [ 69%]

...config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.Stage.SCALE_FIXED_WIDTH) { // h = this.config.width / screen_wh_scale; // } else { // w = this.config.height * screen_wh_scale; // } // Laya...

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

83. TypeError: Cannot read property 'on' of null [ 69%]

....js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is n...

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

84. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 69%]

...nction     使用代码如下:var rankTexture:Texture = new Texture(Laya.Browser.window.sharedCanvas); var image:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image);     附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

85. layabox 怎么使用 google/blockly [ 69%]

...it(960, 660); //Laya.stage.bgColor = "#ffffff"; var demoWorkspace:Object = Browser.window.Blockly.inject('blocklyDiv',{toolbox: Browser.document.getElementById('toolbox')}) 不创建laya舞台是直接能玩,但是不知道怎么把Blockly 生成的<div><svg></svg></div> ...

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

86. 相对坐标布局的使用 [ 68%]

...搜到相关, 也动手试过 maomaolw3 • 2017-10-17 12:10 Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Laya.stage.scaleMode = "fixedauto"; 舞台初始化需要改成这也吗 Monica • 2017-10-17 18:06 @maomaolw3:初始化引擎这块没错... ...

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

87. ToolTip鼠标悬停的使用 [ 68%]

...oader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager pu...

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

88. TypeError: Cannot read property 'm_jointList' of null [ 68%]

....js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is n...

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

89. 示例 骨骼动画换装 加不上点击事件 [ 68%]

...plet = Laya.Templet; var Sprite = Laya.Sprite; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Tween = Laya.Tween; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mCurrIndex = 0; var mArmature; va...

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

90. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 68%]

...class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } priv...

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