Skip to content

Instantly share code, notes, and snippets.

View SneakyFresh's full-sized avatar
💭
I may be slow to respond.

SneakyFresh

💭
I may be slow to respond.
View GitHub Profile
@alfredbaudisch
alfredbaudisch / OcclusionAwarePlayerController.cpp
Last active April 23, 2024 15:46
Unreal Engine OcclusionAwarePlayerController to make actors/meshes transparent when they block the Camera. This is a simple see-through solution that does not require any changes to your scene or actors. To learn more details and instructions on how to use, check my post: https://alfredbaudisch.com/blog/gamedev/unreal-engine-ue/unreal-engine-act…
/**
* !! NOTICE !!
* Instructions: https://alfredbaudisch.com/blog/gamedev/unreal-engine-ue/unreal-engine-actors-transparent-block-camera-occlusion-see-through/
*/
// OcclusionAwarePlayerController.cpp
// By Alfred Reinold Baudisch (https://github.com/alfredbaudisch)
#include "OcclusionAwarePlayerController.h"
#include "Kismet/GameplayStatics.h"