大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)
加载解析ByteArray问题 flash as端代码:>>> var byts:ByteArray = new ByteArray(); byts.writeByte(10); byts.writeInt(20); byts.writeInt(200); byts.writeInt(150); var file:File = File.desktopDirectory.resolvePath("byarr.byte"); var stream:FileStream = new FileStream(); stream.open(fi...
来源: Laya_社区 发布时间: 20170308
...。 AnimatorState getScripts(type:Class):Vector.<AnimatorStateScript> 获取脚本集合。 AnimatorStateProperty Detailclippropertyclip:AnimationClip 获取动作。 Implementation public function get clip():AnimationClip public function set clip(value:AnimationClip):voidcli...
来源: Laya2.0_api 发布时间: 20190513
...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
...来自网络)是在index.html加入以下语句:<script src="url"></script> <script> window.Buffer = window.buffer.Buffer; </script> 将url替换为 https://bundle.run/buffer@6.0.3当然,js文件也可以自行下载放到bin目录中引入。 2024-10-27 0 4 分享 ...
来源: Laya_社区 发布时间: 20241026
... /** * 获取设备当前位置。 * @param onSuccess 带有唯一<code>Position</code>参数的回调处理器。 * @param onError 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_UNAVAILABLE和Geolocation.TIMEOUT之...
来源: Laya3.0_文档 发布时间: 20251010
...造函数也没用 bundle编译出来的代码是这样的: (() => { var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __decorateClass ...
来源: Laya_社区 发布时间: 20230608
...与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: <p>销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的...
来源: Laya_社区 发布时间: 20180105
...器。 Physics rayCastAll(ray:Ray, outHitAllInfo:Vector.<RaycastHit>, distance:Number, layer:int = 0):void[static] 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的所有碰撞器。 PhysicsProperty Detailgravitypropertypublic static var gravity:Vector3重...
来源: laya_api 发布时间: 20170929
...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
...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