951 B
951 B
相关类
- 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
- MountPoint
对应逻辑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 ''
}