로딩
요청 처리 중입니다...

언리얼(Unreal) - 액터에서 입력 받기

 언리얼(Unreal) - 액터에서 입력 받기

게임에서 특정 구역에 들어갔을 때 특정 액터를 입력에 의해 조작하는 경우 액터에서 입력을 받아야한다. 액터에서 입력은 EnableInput을 통해 입력을 받으며, DisableInput을 통해 입력받는 것을 중지한다.

인자로는 플레이어 컨트롤을 넘겨주면 된다. 액터 클래스 코드 // Fill out your copyright notice in the Description page of Project Settings.

#pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "MyActor.generated.h" UCLASS() class TEST_API AMyActor : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties AMyActor(); protected: // Called whe...

# Actor # DisableInput # EnableInput # Input # Unreal # 액터 # 언리얼 # 입력