大约有 576 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0055 秒)
...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
...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
...onent Class CannonPhysicsTriggerComponent PhysicsTriggerComponent 类用于创建物理触发器组件。 Hierarchy CannonPhysicsComponent CannonPhysicsTriggerComponent CannonPhysicsCollider Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Access...
来源: Laya3.0_api 发布时间: 20231102
...CannonPhysicsCollider Class CannonPhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy CannonPhysicsTriggerComponent CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked ...
来源: Laya3.0_api 发布时间: 20231102
...的状态。比如查询数据等。 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
...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
...机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture...
来源: Laya2.0_文档 发布时间: 20210715
...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
...那么我们就来修改下,看看怎么改变样式。 ```typescript //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:...
来源: Laya2.0_文档 发布时间: 20210715
...跟我的应用场景不一样啊。 我不是通过代码从0加载然后创建骨骼对象, 我是直接在ui设计器中拖入*.sk文件生成的SkeletonPlayer节点, 然后运行时,获取那个节点产生的Skeleton进行后续操作。 看了我上传的项目文件吗? Laya_Aaron •...
来源: Laya_社区 发布时间: 20180622