inflearn logo
강의

Course

Instructor

[Rookiss University] UE5 Lyra Clone Coding (Haker)

Input #2

5.5 에서 AddPlayerMappableConfig를 대체할 함수

180

gamble

4 asked

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

Answer 1

0

Liu

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

11강 CallOrRegister_OnExperienceLoaded 질문

0

49

1

Reticle이 안나옵니다.

0

50

2

AddGameFrameworkComponentReceiver vs AddExtensionHandler

0

61

1

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

0

86

2

.

0

71

1

SpawnDefaultPawnAtTransform_Implementation이 호출되지 않습니다.

0

66

2

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

0

72

1

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

0

64

1

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

0

94

2

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

0

105

3

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

0

70

1

CircumferenceMarkerWidget의 bReticleCornerOutsideSpreadRadius 초기화 관련

0

70

1

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

0

87

2

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

0

73

2

Experience 재시작

0

91

2

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

0

93

2

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

0

213

1

FPerContextData에 대해 질문이 있어요

0

58

2

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

0

73

1

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

0

96

1

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

0

105

3

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

0

72

1

IMC가 먹통이에요

0

98

2

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

0

68

1