951 B
Raw Blame History

相关类

  • TsPropActor
  • TsIdolPropActor
  • TsScenePropActor
    • TsPropEffectActor

相关资产

ResArt/MountPointConfig/DT_MountPointConfig用于设置道具挂载时的相对偏移。

MountPoint

GameplayTag中有定义相关Prop的挂载位置标签

  • Prop
    • MountPoint
      • Back
      • Body
      • Feet
      • Head
      • HeadBottom
      • HeadUp
      • Hips
      • LeftFoot
      • LeftHand
      • RightFoot
      • RightHand
      • Root

对应逻辑TsPropAssetManager.ts中的枚举查找函数为GetMountPointIndexByTagName():

export const enum MountPointEnum {
    HeadUp,
    Head,
    HeadDown,
    LeftHand,
    RightHand,
    Back,
    Feet,
    Hips
}

TsIdolPropManagerComponent.ts AttachAllProp() => AttachProp()

TsPropAssetManager.ts

static GetMountPointName(Tag: UE.GameplayTag): string {
	if (Tag.TagName.startsWith('Prop.MountPoint')) {
		let res = Tag.TagName.split('.')
		return res[res.length - 1]
	}
	return ''
}