大约有 1,304 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0120 秒)
Laya_社区(1036) Laya2.0_文档(100) Laya3.0_文档(97) Laya3.0_api(66) Laya2.0_api(2) laya_api(2) Laya_示例(1)
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/PrismaticJoint.ts:18 [首次设置有效]关节的控制点,是相对于自身刚体的左上角位置偏移 axis axis: any[] = [1, ...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效...
来源: Laya2.0_文档 发布时间: 20210715
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效...
来源: Laya2.0_文档 发布时间: 20210715
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Defined in laya/d3/physics/PhysicsComponent.ts:206 是否可以缩放Shape。 owner owner: Node Inherited from Component.owner Defined in laya/compone...
来源: Laya3.0_api 发布时间: 20231115
...github.com/davidshimjs/qrcodejs)。 新建个项目,把下载的qrcode.js添加到index.html中。qrcode的api请参考[地址](https://github.com/davidshimjs/qrcodejs)。具体的逻辑代码如下: ```typescript //初始化引擎 Laya.init(600,400); Laya.stage.bgColor = "#ffcccc"; var div = La...
来源: Laya2.0_文档 发布时间: 20210714
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...件的基类 Component。在LayaAirIDE中,我们可以直接为UI组件添加刚体组件。如下图1所示。  (图1) ##### 刚体类型 `type` 基于理论力学的理论基础,box2D物理引擎的刚体类型(type)分为:静力学类型`static`、动力学类型`dynamic`...
来源: Laya2.0_文档 发布时间: 20210714
动态图集一、概述二、使用动态图集2.1 创建管理器2.2 添加纹理到图集2.3 移除纹理2.4 手动替换纹理2.5 查询纹理信息2.6 统计与监控2.7 清理与销毁三、使用建议动态图集 一、概述 图集(Atlas)是一种将多张小纹理整合为一张大纹...
来源: Laya3.0_文档 发布时间: 20260131