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

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

1. 关于Laya.Tween 在3d上的应用与缓动的优化 [ 100%]

...引用对象中的数值变化,废话不多说直接上代码 //这里以origin为例,将origin的值变化为target的值,可以对应成3d对象中的vector3         let origin: any = {x:1,y:2,z:3};         let target: any = {x:5,y:8,z:8};         Laya.Tween.t...

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

2. Browser获取的运行环境信息,太不准确了吧? [ 99%]

...etOS();             if (os == "Conch-ios") {                 origin = Game.ORIGIN.APP_IOS;             } else if (os == "Conch-android") {                 origin = Game.ORIGIN.APP_ANDROID;             } else {                 origin = Game.ORIGIN.APP_WP8;  ...

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

3. Camera.viewportToRay中origin与direction相等问题 [ 98%]

Camera.viewportToRay中origin与direction相等问题 目前使用的是LayaAir2.0版本做的以下内容. 我在一个脚本里继承了Laya.Script然后写了以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this....

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

4. Access-Control-Allow-Origin 跨域问题 [ 98%]

Access-Control-Allow-Origin 跨域问题 Access to Image at 'http://192.168.1.66:9356/fileUpload/5749684.png' from origin 'file://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. 2017-0...

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

5. 用raycast选取实体,hitresult始终是false [ 97%]

...useY; console.log("rayPoint111 pointx:"+ point.x+" pointy:"+point.y+ " ray.origin.x:"+ray.origin.x+ " ray.origin.y:"+ray.origin.y+ " ray.origin.z:"+ray.origin.z+" ray.direction.x:"+ray.direction.x+" ray.direction.y:"+ray.direction.y+" ray.direction.z:"+ray.direction.z); //产生射线 this.camera.vi...

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

6. 本地调试 (按 QR code) 这里的 access allow origin 怎么加的呢? [ 96%]

本地调试 (按 QR code) 这里的 access allow origin 怎么加的呢? 本地调试 (按 QR code) 这里的 access allow origin 怎么加的呢? 这个 SVG 不给用但是是在本地调试的 查看这个 origin 是一样的但是又说不是 2018-08-28 添加评论 免费帖 --> 分享...

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

7. 加载3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. [ 95%]

加载3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. 我把3D资源放到cdn服务器上,在加载.lh, .ls, .lm等3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. 资源域名和index.html不在一个...

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

8. (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are [ 94%]

...可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are Failed to load file:///H:/WeChatQ1Snake/release/layaweb/v1.0.0/res/atlas/images.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. i.send @ l...

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

9. [LayaNative2]IOS native打包 webview播放视频 返回后没声音 [ 94%]

...Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have ent...

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

10. An AudioContext in a cross origin iframe [ 93%]

An AudioContext in a cross origin iframe 把游戏嵌到iframe里 声音加载报错 有的浏览器不会报错 有的浏览器会报错,如UC浏览器   附件 : --> 2018-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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