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

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

521. laya.maths.Vector4_API3.0 [ 77%]

...UnitY UnitZ ZERO Methods clone cloneTo equal forNativeElement fromArray length lengthSquared setValue toArray writeTo Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new Vector4(x?: number, y?: number, z?: number, ...

来源: Laya3.0_api 发布时间: 20231115

522. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

... /** * 获取设备当前位置。 * @param onSuccess 带有唯一<code>Position</code>参数的回调处理器。 * @param onError 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_UNAVAILABLE和Geolocation.TIMEOUT之...

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

523. @regClass编译报错! [ 77%]

...造函数也没用 bundle编译出来的代码是这样的:     (() => {   var __defProp = Object.defineProperty;   var __getOwnPropDesc = Object.getOwnPropertyDescriptor;   var __name = (target, value) => __defProp(target, "name", { value, configurable: true });   var __decorateClass ...

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

524. removeSelf()这个方法调用后是不是会移除对象上添加的一切东西? [ 77%]

...与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: <p>销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的...

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

525. laya.d3.utils.Physics [ 77%]

...器。 Physics  rayCastAll(ray:Ray, outHitAllInfo:Vector.<RaycastHit>, distance:Number, layer:int = 0):void[static] 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的所有碰撞器。 PhysicsProperty Detailgravitypropertypublic static var gravity:Vector3重...

来源: laya_api 发布时间: 20170929

526. 图片显示异常 [ 77%]

...nction () { return 0.5 - Math.random(); });  listData.map((item, index) => { var hotShow: boolean = false; var newShow: boolean = false;  if (index >= 3 && index < 8) { hotShow = true; }  if (index >= 11 && index < 16) { newShow = true; }  data.push({ gameName: { t...

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

527. 百度地图例子 [ 77%]

...Accuracy = true; index.html配置如下:     <!--jsfile--Custom-->     <script type="text/javascript" src="http://api.map.baidu.com/api%3 ... gt%3B     <!--jsfile--Custom--> 代码是抄的官网例子直接复制粘贴   2018-02-08 添加评论 免费帖 --> 分享 微...

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

528. layaair2-cmd compile 报错 [ 77%]

layaair2-cmd compile 报错 版本如下 E:\test2\test2> layaair2-cmd -v 1.6.15 PS E:\test2\test2> gulp -v CLI version: 2.3.0 Local version: Unknown PS E:\test2\test2> npm -v 7.19.0 附件 : --> 2021-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

529. laya.d3.math.Vector4_API3.0 [ 77%]

...UnitX UnitY UnitZ ZERO Methods clone cloneTo forNativeElement fromArray length lengthSquared setValue toArray writeTo Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new Vector4(x?: number, y?: number, z?: number, ...

来源: Laya3.0_api 发布时间: 20231102

530. Laya2.0构建APP运行闪退,laya.core.js报错 [ 77%]

...rror: this.nativeInput.setBgColor is not a function at Input.<anonymous> (http://stand.alone.version/lib ... 712:21) at TextInput.<anonymous> (http://stand.alone.version/libs/laya.ui.js:2751:19) at Function.SceneUtils.setCompValue (http://stand.alone.version/lib ... 978:14) at Function.S...

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