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

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

91. UI运行时 · LayaAir3.0文档 · LAYABOX [ 65%]

...s.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e....

来源: Laya3.0_文档 发布时间: 20240624

92. 2D物理-碰撞过滤器 [ 65%]

....stage.on(Event.MOUSE_OUT, this, this.mouseUp); // let rigidbody = this.curTarget.getComponent(RigidBody); // rigidbody.type = "kinematic"; } mouseMove(e) { let movementX = e.nativeEvent.movementX; let movementY = e.nativeEvent.movementY; this.preMovementX = movementX; this.preMovementY = movementY;...

来源: Laya2.0_示例 发布时间: 20241001

93. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 65%]

...leReader();//读取文件2进制 file.onload = function(e){ var base64 = e.target.result; var img = new Image();//创建一个图片对象 img.onload = function (){ var canvas = $("#canvas").get(0); var ctx = canvas.getContext("2d"); //使用drawImage显示图片 ctx.drawImage(img,0,0,canvas.width,c...

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

94. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 65%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编...

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

95. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 65%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 关于使用matterjs物理引擎鼠标问题 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 求指点3d射线碰撞和UI点击穿透的问题 请问2.0的版本开始,我...

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

96. 构建andorid工程后,在AndoridStuido中模拟器调试运行出现如下问题,然后打不开APP [ 65%]

...器调试运行出现如下问题,然后打不开APP Waiting for device. Target device: emulator-5554 Uploading file local path: E:\Laya\shjy3Android\AndroidStudio\Shjy3Android\app\build\outputs\apk\app-debug.apk remote path: /data/local/tmp/com.mygame.Shjy3Android Installing com.mygame.Shjy3Andro...

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

97. 调试正常但发布后,index.html在浏览器打开出现跨源受限的问题 [ 65%]

...hrome出现错误: Error processing launch: Error Could not attach to main target unity中的模型导出后在laya中显示不正常 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 iphone自带浏览器页面怎么锁定 谷歌浏览器播放mp3出现The ...

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

98. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 65%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负数 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得...

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

99. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 64%]

...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...

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

100. vivo小游戏 3d模型加载不出,调试无报错 [ 64%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 微信小游戏如何使用ttf字体? 微信小游戏:HTMLDivElement的使用 unity中的模型导出后在laya中显示不正常 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObje...

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