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

大约有 487 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0059 秒)

421. [LayaAir3]Laya 2.x/3.x 演示项目中 Laya.timer.scale 和 Laya.SpineSkeleton.playbackRate 对部分骨骼加速不生效 [ 49%]

...过设置maxDetlaTime来改变引擎的默认值。 几种方式, 1、在脚本的onUpdate里设置,代码示例如下:       onUpdate(): void {         this.spineAni.maxDetlaTime = Laya.timer.delta / 1000 * Laya.timer.scale;     } 这种方式准确,但不建议。 2、直接设置...

来源: Laya_社区 发布时间: 20241217

422. laya.physics.joint.WheelJoint_API3.0 [ 49%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/WheelJoint.ts:18 [首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移 axis axis: any[] = [1, 0] Defined in laya/phy...

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

423. laya.d3.physics.PhysicsTriggerComponent_API3.0 [ 49%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from PhysicsTriggerComponent.canScaleShape Defined in laya/d3/physics/PhysicsComponent.ts:206 是否可以缩放Shape。 owner owner: Node Inherited from Comp...

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

424. laya.d3.component.Script3D [ 49%]

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

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

425. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

... (图3-2) 在图2-21的surface节点上创建一个自定义的组件脚本: import Sprite = Laya.Sprite; import Component = Laya.Component; import Nav2DAgent = Laya.Nav2DAgent; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标...

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

426. laya.d3.core.light.PointLightCom_API3.0 [ 49%]

...s/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:24 获取所属Node...

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

427. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...。 (动图2-7) 三、通过代码使用 在LayaAir-IDE中新建一个脚本,添加到Scene2D节点后,加入下述代码,实现一个光遮挡器的效果: const { regClass, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = ...

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

428. laya.d3.component.Animator_API3.0 [ 49%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 cullingMode cullingMode: number = Animator.CULLINGMODE_CULLCOMPLETELY Defined in laya/d3/component/Animator.ts:95 裁剪模式 owner owner: Node Inherited from Component.owner Defined in laya/components/Component...

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

429. laya.d3.core.light.SpotLightCom_API3.0 [ 49%]

...s/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:24 获取所属Node...

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

430. laya.d3.physics.constraints.FixedConstraint_API3.0 [ 49%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 disableCollisionsBetweenLinkedBodies disableCollisionsBetweenLinkedBodies: boolean = true Inherited from ConstraintComponent.disableCollisionsBetweenLinkedBodies Defined in laya/d3/physics/constraints/ConstraintC...

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