大约有 17 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0025 秒)
...ited Externals Only exported Menu Globals "laya/net/URL" URL Class URL URL 提供URL格式化,URL版本管理的类。 引擎加载资源的时候,会自动调用formatURL函数格式化URL路径 通过basePath属性可以设置网络基础路径 通过设置customFormat函数,可以自定义U...
来源: Laya3.0_api 发布时间: 20231115
...quest Class HttpRequest HttpRequest 通过封装 HTML XMLHttpRequest 对象提供了对 HTTP 协议的完全的访问,包括做出 POST 和 HEAD 请求以及普通的 GET 请求的能力。 HttpRequest 只提供以异步的形式返回 Web 服务器的响应,并且能够以文本或者二进制...
来源: Laya3.0_api 发布时间: 20231115
...n Defined in laya/device/motion/RotationInfo.ts:13 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。 关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 需要注...
来源: Laya3.0_api 发布时间: 20231115
...tion/Geolocation.ts:36 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则会获取最佳可能的结果。 请注意,这可能会导致较慢的响应时间或增加电量消耗(如使用GPS)。 另一方面,如果设置为false,将会得到更快速的...
来源: Laya3.0_api 发布时间: 20231115
...bject Defined in Config.ts:75 在IOS下,一些字体会找不到,引擎提供了字体映射功能,比如默认会把 "黑体" 映射为 "黑体-简",更多映射,可以自己添加 兰亭黑 兰亭黑: string = "兰亭黑-简" Defined in Config.ts:75 凌慧体 凌慧体: string = "凌慧...
来源: Laya3.0_api 发布时间: 20231115
...bsolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: Rotati...
来源: Laya3.0_api 发布时间: 20231115
...r" SoundManager Class SoundManager SoundManager 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。 引擎默认有两套声音方案:WebAudio和H5Audio 播放音效,优先使用WebAudio播放声音,如果WebAudio不可用,则用H5Audio播放,H5Audio在部...
来源: Laya3.0_api 发布时间: 20231115
... Class Browser Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Hierarchy Browser Index Properties PLATFORM_ANDROID PLATFORM_IOS PLATFORM_PC canvas context onAlipayMiniGame onAndroid onBDMiniGame onBLMiniGame onChrome onEdge onHWMiniGame onIE onIOS onIPad onIPhone...
来源: Laya3.0_api 发布时间: 20231115
...310 获取物理世界。 缺省的是从所属的scene3d取,子类可以提供另外的方法 Returns PhysicsSimulation getcurrentForce getcurrentForce(out: Vector3): void Defined in laya/d3/physics/constraints/ConstraintComponent.ts:296 获得当前力 Parameters out: Vector3 Returns void getcur...
来源: Laya3.0_api 发布时间: 20231115
...310 获取物理世界。 缺省的是从所属的scene3d取,子类可以提供另外的方法 Returns PhysicsSimulation getcurrentForce getcurrentForce(out: Vector3): void Inherited from ConstraintComponent.getcurrentForce Defined in laya/d3/physics/constraints/ConstraintComponent.ts:296 获得...
来源: Laya3.0_api 发布时间: 20231115