大约有 1,304 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
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 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 disableCollisionsBetweenLinkedBodies disableCollisionsBetweenLinkedBodies: boolean = true Defined in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/WheelJoint.ts:18 [首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移 axis axis: any[] = [1, 0] D...
来源: Laya3.0_api 发布时间: 20231115
...一个2D空项目,在Scene2D下新建一个自定义的组件脚本,并添加如下代码: onAwake(): void { //侦听自定义的事件"Click" this.owner.on("Click",this,()=>{ console.log("侦听到自定义的“Click”事件"); }) } //鼠标点击后执行,发送Click事件。 onMouseC...
来源: Laya3.0_文档 发布时间: 20251010
... //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.transform.rotate(new Vector3( -3.14 / 3, 0, 0)); })); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdit...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 color color: Color Inherited from Light.color Defined in laya/d3/core/light/Light.ts:61 灯光颜色。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:2...
来源: Laya3.0_api 发布时间: 20231115
...github.com/davidshimjs/qrcodejs)。 新建个项目,把下载的qrcode.js添加到index.html中。qrcode的api请参考[地址](https://github.com/davidshimjs/qrcodejs)。具体的逻辑代码如下: ```typescript class Main { //二维码对象 private qrcode:any; private qrcodeSp:Laya.Sprite; c...
来源: Laya2.0_文档 发布时间: 20210715
...合体”,作为一个刚体(RigidBody)处理。 在IDE中,我们添加完组合碰撞形状后,只有一个设置,就是形态组合(shapes),通过点击 + 号按钮添加子形状,如图1-14所示。 (图1-14) 需要注意的是,添加子形状的时候,不能再次使用组合...
来源: Laya3.0_文档 发布时间: 20251010
...言1.2 物理引擎长度转换需知(必读)二、刚体 RigidBody2.1 添加刚体组件2.2 刚体类型 type2.3 重力2.4 角速度 angularVelocity2.5 角阻尼 angularDampin2.6 线性速度 linearVelocity2.7 线性阻尼 linearDamping2.8 子弹 bullet2.9 刚体休眠2.10 允许旋转 allowRot...
来源: Laya3.0_文档 发布时间: 20251010