[Unreal] 블루프린트 컴파일시 조건에 안 맞으면 에러 발생 시키기 프로젝트명 : SingleProject 1. UBlueprintCompilerExtension를 상속 받아 ProcessBlueprintCompiled를 재정의ex) #pragma once#include "CoreMinimal.h"#include "BlueprintCompilerExtension.h"#include "SPBlueprintCompilerExtension.generated.h"/** * */UCLASS()class SINGLEPROJECT_API USPBlueprintCompilerExtension : public UBlueprintCompilerExtension{ GENERATED_BODY() public: virtual void ProcessBlueprintCompiled(const F.. 2025. 12. 6. [Unreal] Possess 되지 않은 캐릭터에 중력이 적용되도록 설정 캐릭터만 생성시 중력이 적용되지 않기 때문에 CharacterMovement 컴포넌트에 'Run Physics No Controller' 를 true로 설정 캐릭터 -> 캐릭터 무브먼트(일반 세팅) -> 고급 -> 컨트롤러 없이 피직스 실행 2025. 6. 3. [Unreal] Button 기본 사용 버튼을 드래그해서 BP에 배치 후 적당한 이름으로 변경(여기서는 BTN_Ok로 설정) 필요 헤더#include "Components/Button.h" BP에 배치된 Button을 C++에서 참조// 유저 위젯 헤더// 확인 버튼UPROPERTY(meta = (BindWidget))class UButton* BTN_Ok = nullptr;BindWidget을 사용하면 BP에 배치된 위젯을 C++에서 참조 할수 있다. 이때 BP에 동일한 이름의 위젯이 없는경우 BP 컴파일 에러 발생 클릭시 처리.h// 헤더에 핸들러 함수 선언UFUNCTION()void OnClicked_Ok(); .cpp// 등록void UMyWidget::NativeConstruct(){ Super::NativeConstruct(); /.. 2025. 5. 2. [Unreal] Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h 현재 Unreal 버전에서 사용해야하는 Visual Studio의 버전보다 높은 버전이 사용되는 경우 출력 Unreal에 맞는 Visual Studio 버전 정보https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine?application_version=5.3\ Visual Studio 버전별 _MSC_VER 정보https://learn.microsoft.com/en-us/cpp/overview/compiler-versions?view=msvc-170 Microsoft Visual C++ co.. 2025. 4. 26. [Unreal] .uproject 우클릭시 "Generate Visual Studio project files" 메뉴가 없을 때 1. UnrealVersionSelector.exe로 연결.uproject 우클릭 -> 속성 -> 연결 프로그램 -> UnrealVersionSelector.exe VersionSelector 경로C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe 2025. 4. 20. [Unreal] Asset 타입 에셋 타입설명C++ 클래스Static Mesh정적인 3D 모델UStaticMeshSkeletal Mesh본이 있는 애니메이션 가능한 3D 모델USkeletalMeshMaterial재질UMaterial / UMaterialInstanceTexture텍스쳐UTexture2D, UTextureCube 등Sound사운드 리소스 및 큐USoundWave, USoundCueAnimation SequenceSkeletalMesh 애니메이션UAnimSequenceAnimation Blueprint애니메이션 로직 제어UAnimBlueprintBlueprint Class블루프린트 에셋UBlueprintLevel (Map)맵/레벨 파일 (.umap)UWorldDataTable구조체 기반의 CSV/JSON 테이블UDataTa.. 2025. 4. 5. [Unreal] AssetRegistry 언리얼 프로젝트 내 모든 에셋에 대한 정보를 효율적으로 저장, 검색, 관리할 수 있게 도와주는 시스템 주요기능빠른 검색 - 에셋을 효율적으로 필터링하고 찾을 수 있음의존성 관리 - 에셋 간의 의존성을 파악 사용 방법검색할 수 있는 에셋 타입( 참고 ) ex) UStaticMesh// 헤더 추가#include "AssetRegistry/AssetRegistryModule.h"void SearchAssets(){ // AssetRegistry 모듈 로드 FAssetRegistryModule& assetRegistryModule = FModuleManager::LoadModuleChecked("AssetRegistry"); IAssetRegistry& assetRegistry = assetRegistryMod.. 2025. 4. 5. [Unreal] DetailViewWidget 디테일뷰 정보처럼 UObject 에 설정된 변수 확인 및 수정 DetailsViewWidget.h// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"#include "Blueprint/UserWidget.h"#include "DetailsViewWidget.generated.h"/** * */UCLASS()class UDetailsViewWidget : public UUserWidget{ GENERATED_BODY() public: // UObject를 설정하여 DetailsView에 표시 UFUNCTION(BlueprintCallable, .. 2025. 1. 28. [Unreal] 입력 모드(Input Mode) 1. Game and UI게임 플레이와 UI가 모두 입력을 받는다FInputModeGameAndUI inputModeGameAndUI;SetInputMode(inputModeGameAndUI); 2. Game Only입력이 게임 플레이 요소에만 전달FInputModeGameOnly inputModeGameOnly;SetInputMode(inputModeGameOnly); 3. UI Only게임 플레이 입력이 무시되고 UI요소에만 적용FInputModeUIOnly inputModeUIOnly;SetInputMode(inputModeUIOnly); 2025. 1. 15. [Unreal] 경로 함수 프로젝트 경로 FPaths::ProjectDir()프로젝트 /Content 경로[프로젝트]/ContentFPaths::ProjectContentDir()프로젝트 /Saved 경로[프로젝트]/SavedFPaths::ProjectSavedDir()다운로드 데이터 쓰기 가능 경로[프로젝트]/Saved/PersistentDownloadDirFPaths ::ProjectPersistentDownloadDir 2025. 1. 12. 이전 1 2 3 4 ··· 11 다음