![]() Sets Player Controller view to the CameraActorToFind variable. PlayerCharacterController->SetViewTargetWithBlend(FoundActors, CameraBlendTime, EViewTargetBlendFunction::VTBlend_Linear) Sets Player Controller view to the first CameraActor found UGameplayStatics::GetAllActorsOfClass(GetWorld(), CameraToFind, FoundActors) Utility function to populate array with all Camera Actors in the level ![]() Within the ABlendTriggerVolume::NotifyActorBeginOverlap method, remove the following lines of code: OverlapVolume->SetupAttachment(RootComponent) ĬameraToFind = CreateDefaultSubobject(TEXT("CameraToFind")) OverlapVolume = CreateDefaultSubobject(TEXT("CameraProximityVolume")) You can turn this off to improve performance if you don't need it. Set this actor to call Tick() every frame. Next, navigate to the BlendTriggerVolume.cpp file, and in the constructor ABlendTriggerVolume::ABlendTriggerVolume, declare the following:ĪBlendTriggerVolume::ABlendTriggerVolume() UPROPERTY(EditAnywhere, BlueprintReadWrite) In the class defaults, delete the existing TSubClassOfAActor declaration, and replace it with In the Content Browser, navigate to your C++ classes folder, and open your BlendTriggerVolume.h class defaults. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |