FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unrealcpp/SetViewTargetBlend/SetViewTargetBlend.cpp at master · Harrison1/unrealcpp · GitHub
Harrison1
/
unrealcpp
Public
Notifications
You must be signed in to change notification settings
Fork
223
Star
1.3k
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unrealcpp
/
SetViewTargetBlend
/
SetViewTargetBlend.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 628 Bytes
Breadcrumbs
unrealcpp
/
SetViewTargetBlend
/
SetViewTargetBlend.cpp
Copy path
File metadata and controls
21 lines (17 loc) · 628 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
Harrison McGuire
//
UE4 Version 4.20.2
//
https://github.com/Harrison1/unrealcpp
//
https://severallevels.io
//
https://harrisonmcguire.com
#
include
"
SetViewTargetBlend.h
"
//
include gameplay statics header file
#
include
"
Kismet/GameplayStatics.h
"
//
Called when the game starts or when spawned
void
ASetViewTargetBlend::BeginPlay
()
{
Super::BeginPlay
();
//
Find the actor that handles control for the local player.
APlayerController* OurPlayerController =
UGameplayStatics::GetPlayerController
(
this
,
0
);
//
Smoothly transition to our actor on begin play.
OurPlayerController->
SetViewTargetWithBlend
(MyActor,
2
.
f
);
}
Back
|
FazBrowse Home
|
New Git URL