언리얼 개발 도중 액터를 파괴하려 Destroy를 호출했으나 작동하지 않았다.
다른 액터에서는 잘 되었는데 BeginPlay에 넣은 Destroy()만 안됐다.
호출 시점이 문제인건가, 아니면 다른 것이 문제인건가 고민하다 아래 링크를 발견했다.
https://www.reddit.com/r/unrealengine/comments/jt5s61/c_aactordestroy_not_destroying_actor/
From the unrealengine community on Reddit
Explore this post and more from the unrealengine community
www.reddit.com
C++에서 Super::BeginPlay()를 호출해야 정상적으로 작동한다는 말이 있어 그대로 적용해보았고 해결되었다!
되도록이면 상속받은 클래스는 Super:: 함수를 호출해주도록 하자.
'게임개발 > Unreal Engine' 카테고리의 다른 글
[UE5] Unreal Engine C++ API References (2) | 2024.08.20 |
---|---|
[UE5] Root Motion with custom mesh not working (0) | 2024.07.17 |
[Unreal Engine 5] Package Error 정복하기(malformed tag, unknown structure, modify UObject) (1) | 2023.12.08 |