vault backup: 2024-05-28 15:12:43
This commit is contained in:
parent
6459cbf764
commit
8e61710b3c
@ -80,13 +80,35 @@ Run(CMDStr: $Ref<string>) : void{
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## SetDirectorModeStr
|
||||
位于`ULiveDirectorGameInstance`
|
||||
TsLiveDirectorGameInstance.ts
|
||||
|
||||
## 其他有用函数
|
||||
```ts
|
||||
static _HipsTranslation(gameInstance: TsLiveDirectorGameInstance, value:number): void {
|
||||
var actors = UE.NewArray(UE.Actor)
|
||||
UE.GameplayStatics.GetAllActorsOfClass(gameInstance, TsIdolActor.StaticClass(), $ref(actors))
|
||||
for (var i = 0; i < actors.Num(); i++) {
|
||||
var model = actors.GetRef(i) as TsIdolActor
|
||||
if (model) {
|
||||
var anim = model.Mesh.GetAnimInstance() as UE.IdolAnimInstance
|
||||
let fullbodyNode = Reflect.get(anim, 'AnimGraphNode_Fullbody') as UE.AnimNode_FullBody
|
||||
if (fullbodyNode) {
|
||||
//fullbodyNode.bUseHipsTranslation = value > 0
|
||||
}
|
||||
anim.SetRootMotionMode(value > 0 ? UE.ERootMotionMode.NoRootMotionExtraction : UE.ERootMotionMode.RootMotionFromEverything)
|
||||
model.RootComponent.K2_SetRelativeLocationAndRotation(new UE.Vector(0, 0, model.CapsuleComponent.CapsuleHalfHeight), new UE.Rotator(0, 0, 0), false, null, false)
|
||||
console.warn("use hips translation " + (value > 0))
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
# RuntimeEditor插件
|
||||
|
||||
# 三级导播台
|
||||
run 3
|
||||
|
||||
# MotionProcess
|
||||
资产位于:UIAssets/Character/WBP_CharacterItem
|
||||
UI逻辑位于:TsCharacterItem.ts的TsCharacterItem
|
||||
|
Loading…
x
Reference in New Issue
Block a user