보키_기록용

ABILITYLIST_SCOPE_LOCK 본문

언리얼/MEMO

ABILITYLIST_SCOPE_LOCK

bokki0117 2022. 9. 16. 12:04

Lyra 보다가 나온 매크로. 

ABILITYLIST_SCOPE_LOCK();
for(const FGameplayAbilitySpec& AbilitySpec : ActivatableAbilities.Items)
{
	...
}

주로 ActivatableAbilities.Items을 반복문에 쓸 때 저렇게 위에다 쓴다.

반복하는 동안 Ability를 취소하거나 종료하는 것으로 인해 목록이 변경되지 않도록 잠그기 위해 위에다 쓴다.

 

GitHub - tranek/GASDocumentation: My understanding of Unreal Engine 4's GameplayAbilitySystem plugin with a simple multiplayer sample project.

 

GitHub - tranek/GASDocumentation: My understanding of Unreal Engine 4's GameplayAbilitySystem plugin with a simple multiplayer s

My understanding of Unreal Engine 4's GameplayAbilitySystem plugin with a simple multiplayer sample project. - GitHub - tranek/GASDocumentation: My understanding of Unreal Engine 4's Gamepl...

github.com

 

Comments