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

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

491. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 43%]

...Zoom(new this.BMap.Point(116.32715863448607, 39.990912172420714), 15); // 创建标注物 this.marker = new this.BMap.Marker(new this.BMap.Point(0, 0)); this.map.addOverlay(this.marker); } ``` init()函数初始化百度地图。关闭了大部分交互功能,只留下拖动地图。地图初始...

来源: Laya2.0_文档 发布时间: 20210714

492. laya.d3.component.Script3D [ 43%]

...ublic class Script3DInheritanceScript3D Component Object Script3D 类用于创建脚本的父类,该类为抽象类,不允许实例。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 ...

来源: Laya2.0_api 发布时间: 20190513

493. 使用百度地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...dZoom(new this.BMap.Point(116.32715863448607, 39.990912172420714), 15); // 创建标注物 this.marker = new this.BMap.Marker(new this.BMap.Point(0, 0)); this.map.addOverlay(this.marker); } init()函数初始化百度地图。关闭了大部分交互功能,只留下拖动地图。地图初始地...

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

494. laya.d3.physicscannon.CannonPhysicsTriggerComponent_API3.0 [ 43%]

...onent Class CannonPhysicsTriggerComponent PhysicsTriggerComponent 类用于创建物理触发器组件。 Hierarchy CannonPhysicsComponent CannonPhysicsTriggerComponent CannonPhysicsCollider Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Access...

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

495. laya.d3.physicscannon.CannonPhysicsCollider_API3.0 [ 42%]

...CannonPhysicsCollider Class CannonPhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy CannonPhysicsTriggerComponent CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked ...

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

496. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...的状态。比如查询数据等。 GET请求的示例代码如下: //创建HttpRequest对象 const xhr = new Laya.HttpRequest(); //发送HTTP的GET请求,数据会附加在URL中,适用于无需发送大量数据的情况。 xhr.send('https://httpbin.org/get', null, 'get', 'text'); 2.1.3 POS...

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

497. laya.components.Script [ 42%]

...Classpublic class ScriptInheritanceScript Component Object Script 类用于创建脚本的父类,该类为抽象类,不允许实例。 组件的生命周期 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获...

来源: Laya2.0_api 发布时间: 20190513

498. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 42%]

...机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture...

来源: Laya2.0_文档 发布时间: 20210715

499. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 42%]

...ded(){ var btn = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;w...

来源: Laya2.0_文档 发布时间: 20210714

500. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 42%]

...那么我们就来修改下,看看怎么改变样式。 ```typescript //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:...

来源: Laya2.0_文档 发布时间: 20210715