Null Reference for Blueprint Camera

ErayT
Fri, 29 Aug 2014 10:52:14 +0000
Cinematics & Media

Guys,

It is a straightforward question. I have the code below. I try to get an instance of CameraActor but it returns null. Why?

	static ConstructorHelpers::FObjectFinder<ACameraActor> Camera(TEXT("Blueprint'/Game/Blueprints/Camera.Camera'"));
	SetViewTarget(Camera.Object);

1 post - 1 participant