본문 바로가기

::protected61

액터(Actor)의 초기화 순서. PostLoad/PostActorCreated 액터의 생성을 위해 필요한 셋업 시 사용. PostLoad는 액터의 시리얼라이즈를 위해, PostActorCreated는 생성을 위해 사용. AActor::OnConstruction 액터의 생성, 이곳에서는 블루프린트의 액터가 그들의 컴포넌트를 생성하고, 변수를 초기화 시키는 곳. AActor::PreInitializeComponents 액터의 컴포넌트들에 대해 InitializeComponent가 호출되기 바로 전 실행되는 곳. UActorComponent::InitializeComponent 액터가 보유하고 있는 컴포넌트들의 배열이 순차적으로 초기화 호출이 되는 곳. (단, 컴포넌트의 bWantsInitializeComponent가 true 상태이어야 함.. 2019. 12. 6.
Montage 관련 에러.. 신기하게도 노티파이 간격이 0.03초 정도의 차인데.. Montage_IsPlaying() 값이 다르게 나옴..왜 일까..휴우.. 2019. 11. 21.
ProjectW 깃허브 주소 https://github.com/smilewook/ProjectW 2019. 11. 21.
InterpTo InterpTo ;지정한 속력으로 목표 지점까지 진행, 도달하면 멈추는 기능. float > FInterpTo Vector > VInterpTo Rotator > RInterpTo /** Interpolate float from Current to Target. Scaled by distance to Target, so it has a strong start speed and ease out. */static CORE_API float FInterpTo( float Current, float Target, float DeltaTime, float InterpSpeed ); /** Interpolate vector from Current to Target. Scaled by distance to Targe.. 2019. 11. 20.
C++ 코드 컨벤션(by김포프) Rule of Thumb 가독성 우선(항상 코드가 문서여야 함) 크래쉬/조기경사례 최악의 상황이 닥칠 때까지 기다리지 마라. 그렇게 하지 않을 이유가 없다면 IDE의 자동 포맷된 스타일을 따르십시오(VC++의 Ctrl + K + D) 기존 코드에서 학습 References Unreal engine 4 coding standard Doom 3 Code Style Conventions IDesign C# Coding Standard 1. 네이밍 규칙 및 스타일 클래스 및 구조체 : 파스칼(Pascal) class PlayerManager; struct AnimationInfo; 지역 변수 및 지역 함수 파라미터 : 카멜(camel) void SomeMethod(const int someParameter); .. 2019. 11. 20.
Player Controller & Pawn Player Controller ;폰을 조종하는 역할. 플레이어가 입장할 때 배정되며, 배정된 플레이어 컨트롤러는 변경할 수 없음. Pawn ;플레이어 컨트롤러에게 조종당하는 액터. 플레이어는 플레이어 컨트롤러를 통해 현재 폰을 버리고 다른 폰으로 옮길 수 있음. 플레이어 게임 입장(Login) 시 실행 순서. 1. 플레이어 컨트롤러의 생성 2. 플레이어 폰의 생성 3. 플레이어 컨트롤러가 플레이어 폰을 빙의(Possess) 4. 게임 시작 PlayerContorller::PostInitializeComponents() GameMode::PostLogin() Pawn::PostInitializeComponents() PlayerContorller::OnPossess() // Possess() Pawn::.. 2019. 11. 19.