inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[Rookiss University] UE5 Lyra 클론 코딩 (Haker)

Input #2

5.5 에서 AddPlayerMappableConfig를 대체할 함수

174

토토

작성한 질문수 4

3

Subsystem->AddPlayerMappableConfig(Pair.Config.LoadSynchronous(), Options);	

5.5 버전에서는 해당 함수가 없어진 것 같습니다. 그래서

 

for (const FLyraCloneMappableConfigPair& Pair : DefaultInputConfigs)
{
    if (Pair.bShouldActivateAutomatically)
    {
       FModifyContextOptions Options = {};
       Options.bIgnoreAllPressedKeysUntilRelease = false;

       // 내부적으로 Input Mapping Context를 추가한다:
       // - AddPlayerMappableConfig를 간단히 보는 것을 추천
       for (const auto ConfigObject = Pair.Config.LoadSynchronous(); const auto& MappingContextPair : ConfigObject->GetMappingContexts())
       {
          const UInputMappingContext* MappingContext = MappingContextPair.Key;
          const int32 Priority = MappingContextPair.Value; // 우선순위 값도 가져옵니다
          Subsystem->AddMappingContext(MappingContext, Priority, Options);
       }
    }
}

이렇게 해주시면 5.5에서도 정상적으로 실습이 됩니다.

c++ unreal-engine

답변 1

0

Liu

감사합니다. 결국 5.5버전에서 변경되었군요!

AddGameFrameworkComponentReceiver vs AddExtensionHandler

0

19

0

B_TeleportToUserFacingExperience가 추가로 생성되지 않습니다.

0

53

2

.

0

57

1

SpawnDefaultPawnAtTransform_Implementation이 호출되지 않습니다.

0

56

2

Input Subsystem 에서 오류가 발생합니다

0

63

1

7강 GameMode와 Modules관련 질문드립니다.

0

52

1

LyraFrontEnd 에서 로딩화면에서 넘어가지 않는 원인이 뭔지 질문드립니다.

0

81

2

리소스 이주했는데 안보이는데 어떻게 해야하나요?

0

84

3

TakeFromAbilitySystem 함수에서 Array 에 대한 remove 는 수행하지 않나요?

0

55

1

CircumferenceMarkerWidget의 bReticleCornerOutsideSpreadRadius 초기화 관련

0

58

1

Pawn 교체, Possess 후 위젯이 이전 값(상태)을 잘못 보여줄 때 처리법이 궁금합니다.

0

73

2

Pawnextension#3 9:19 질문이 있습니다.

0

60

2

Experience 재시작

0

77

2

Log 파트에서 Subtitution Macro Call 를 사용하는 방법이 무엇인가요?

0

79

2

설치후 빌드하는데 에러가 발생하고 인텔리센스도 잘 활성화되지 않습니다.

0

202

1

FPerContextData에 대해 질문이 있어요

0

47

2

OnGameFeatureActivating와 WorldContext관해 질문 있습니다.

0

67

1

GameFeature Action 및 Common UI Widget 생성 관련 질문

0

78

1

가비지컬렉션 관련 질문있습니다.

0

94

3

Travel관련해서 질문 있습니다.

0

59

1

IMC가 먹통이에요

0

83

2

PawnExtension #3 에서 말한 라이라 공식문서가 뭔가요?

0

64

1

PawnExtensionComponent::SetPawnData에서의 CheckDefaultInitialization

0

54

1

미니맵 제작

0

84

2