unreal.MappingContextRegistrationTrackingMode¶
- class unreal.MappingContextRegistrationTrackingMode¶
Bases:
EnumBaseOptions for how multiple registrations of an input mapping context should be tracked.
C++ Source:
Plugin: EnhancedInput
Module: EnhancedInput
File: InputMappingContext.h
- COUNT_REGISTRATIONS: MappingContextRegistrationTrackingMode = Ellipsis¶
Track how many times the IMC is added and keeps the IMC applied until the IMC is removed the same number of times. This allows multiple systems to use the same Input Mapping Context without needing to check if any other systems are still using the same Input Mapping Context.
Warnings will be logged if Input Mapping Contexts with this tracking mode are still applied at deinitialization, the expectation is that there will be a RemoveMappingContext() call for every call to AddMappingContext() when using this mode. see: IEnhancedInputSubsystemInterface::ValidateTrackedMappingContextsAreUnregistered
- Type:
1
- UNTRACKED: MappingContextRegistrationTrackingMode = Ellipsis¶
This is the default behavior. Registrations of the Input Mapping Context are not tracked. The mapping context will be unregistered when removing it the first time, no matter how many times it has been added.
- Type:
0