스코프를 추가하고 스나이퍼라이플을 장착하려는데 장착이되지않아
디버깅으로 확인을해보니 component가 nullptr이었던 문제가 발생했다.
https://forums.unrealengine.com/t/c-uproperty-actor-component-variable-being-set-to-null/413170/7
C++ UPROPERTY actor component variable being set to null
I had the same problem, but changing tags in the UPROPERTY did not fix it. I ended up having to change the name of the component variable. PlayerEquipment = CreateDefaultSubobject<UEquipmentComponent>(TEXT("PlayerEquipment")); to PlayerEquipment2 = CreateD
forums.unrealengine.com
1. Component 변수명을 수정
2. 블루프린트를 새로 만들기
) Component는 Get함수로 접근을 해야겠다.. 1번방법으로 해결
'공부 > Unreal5' 카테고리의 다른 글
Unreal Replicated 체크를 하지 않았을 때 (0) | 2022.07.06 |
---|---|
Unreal PostProcess 사용할때 함수들 (0) | 2022.07.05 |
Unreal 샷건 계산식 (0) | 2022.07.05 |
Unreal Mesh(Bone)를 Physics로 흔들리게 해주는 방법 (0) | 2022.07.04 |
Unreal 발사체 사용시 충돌체 무시방법들 (0) | 2022.07.04 |