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

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

151. 如何能监听到TouchStart和TouchEnd事件 [ 63%]

...vent: any;         /** 事件目标触发对象。*/         target: laya.display.Sprite;         /** 事件当前冒泡对象。*/         currentTarget: laya.display.Sprite;         _stoped: boolean;         /** 分配给触摸点的唯一标识号(作...

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

152. 引擎版本2.4.0打包微信小游戏报错,开发者工具正常,真机运行报错[附复现Demo] [ 62%]

...o  我的 tsconfig.json 配置:{ "compilerOptions": { "module": "es6", "target": "es6", "noEmitHelpers": true, "sourceMap": false }, "exclude": [ "node_modules" ] }  打包未勾选ES6转ES5,如果勾选了打包会报错 运行了npm update 更新之后也一直报错,无法打包   以下...

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

153. 分享:DrawToCanvas内存释放问题! [ 62%]

...is.zoomBox.drawToCanvas(RouletteTableScene.ZOOM_W, RouletteTableScene.ZOOM_TARGET_H, -offsetX, -offsetY); //获取截屏区域的texture this._texture = new Laya.Texture(this._htmlC); this._texture.bitmap.enableMerageInAtlas = false; this.zoomImg.graphics.clear(); this.zoomImg.graphics.drawTexture(t...

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

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

...v用来显示地图 var mapDiv; var infoText; var scene; var mySwitch; var target; var isRotate = true; (function() { Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; scene = Laya.stage.addChild(new Laya.Scene()); scene.shadingMode...

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

155. 骨骼挂点图片不展示的问题 [ 61%]

...ono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters...

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

156. laya.events.Event [ 61%]

...处于活动状态 (true) 还是非活动状态 (false)。 Event  currentTarget : Sprite 事件当前冒泡对象。Event  delta : int滚轮滑动增量Event  keyCode : int键盘值Event  keyLocation : uint[read-only] 表示键在键盘上的位置。这对于区分在键盘上多次出现...

来源: Laya2.0_api 发布时间: 20190513

157. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 61%]

... constructor Sprite cannot be invoked without 'new' 将tsconfig.json里的"target":"es6"改为"es5"会报错: Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new'   会升级到2.2.0Beta主要是看升级日志里,这个版本修复里很多bug,比如之前我们也发...

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

158. layabox7.1.17 beta ios打包后编译失败 [ 60%]

...  cd /Users/wxh/Desktop/layabox/ios/ykmj     export IPHONEOS_DEPLOYMENT_TARGET=7.0     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"     /Ap...

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

159. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 60%]

...   //将RenderTexture设置为渲染目标         buf.setRenderTarget(renderTexture);         //清楚渲染目标的颜色为黑色,不清理深度         buf.clearRenderTarget(true,false,new Laya.Vector4(0,0,0,0));                  //将传入的Rend...

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

160. laya.events.Event [ 60%]

...处于活动状态 (true) 还是非活动状态 (false)。 Event  currentTarget : Sprite 事件当前冒泡对象。Event  delta : int滚轮滑动增量Event  keyCode : int键盘值Event  keyLocation : uint[read-only] 表示键在键盘上的位置。这对于区分在键盘上多次出现...

来源: laya_api 发布时间: 20170929