大约有 156 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0031 秒)
Laya_社区(95) Laya3.0_api(18) Laya2.0_api(16) laya_api(15) Laya2.0_文档(10) Laya3.0_文档(1) Laya_示例(1)
...引用对象中的数值变化,废话不多说直接上代码 //这里以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
...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
Camera.viewportToRay中origin与direction相等问题 目前使用的是LayaAir2.0版本做的以下内容. 我在一个脚本里继承了Laya.Script然后写了以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this....
来源: Laya_社区 发布时间: 20190319
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
...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
本地调试 (按 QR code) 这里的 access allow origin 怎么加的呢? 本地调试 (按 QR code) 这里的 access allow origin 怎么加的呢? 这个 SVG 不给用但是是在本地调试的 查看这个 origin 是一样的但是又说不是 2018-08-28 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20180828
加载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
...可以正常跑,但是发布后,运行报错 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
...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
...线。 Hierarchy Ray Index Constructors constructor Properties direction origin Methods at Constructors constructor new Ray(origin: Vector3, direction: Vector3): Ray Defined in laya/d3/math/Ray.ts:10 创建一个 Ray 实例。 Parameters origin: Vector3 射线的起点 direction: Vector3 射线的...
来源: Laya3.0_api 发布时间: 20231115