[Unreal Engine 4 C++] C++에서 구현한 정적 함수와 일반 함수의 블루프린트에서 사용시 차이점

2022. 9. 26. 14:19· Unreal Engine/C++
UFUNCTION(BlueprintCallable, Category = "PRMovementSystem|DistanceMatching")
bool PredictStopLocation(FVector& OutStopLocation, const FVector& CurrentLocation, const FVector& Velocity, const FVector& Acceleration, float Friction, float BrakingDeceleration, const float TimeStep, const int MaxSimulationIterations = 100);

 

 위의 함수는 MovementSystem이라는 ActorComponent에 구현된 static을 사용하지 않은 일반 함수입니다. 일반 함수를 구현하여 블루프린트에서 사용할 경우 다음과 같이 MovementSystem노드에서 해당 함수의 노드를 끌어서 사용하게됩니다.

 

 

UFUNCTION(BlueprintCallable, Category = "PRMovementSystem|DistanceMatching")
static bool PredictStopLocation(FVector& OutStopLocation, const FVector& CurrentLocation, const FVector& Velocity, const FVector& Acceleration, float Friction, float BrakingDeceleration, const float TimeStep, const int MaxSimulationIterations = 100);

 

 이제 함수에 static을 사용하여 정적 함수로 구현하고 블루프린트에서 사용할 경우 다음과 같이 MovementSystem노드에서 해당 함수의 노드를 끌어서 사용하지 않아도 됩니다.

 

저작자표시 (새창열림)

'Unreal Engine > C++' 카테고리의 다른 글

[Unreal Engine 4 C++] UENUM을 USTRUCT에서 변수로 사용하기  (0) 2022.12.31
[Unreal Engine 4 C++] SetTimer를 활용한 Delay구현  (0) 2022.12.08
[Unreal Engine 4 C++] DrawDebugLine의 InWorld인자 주의점  (0) 2022.03.04
[Unreal Engine 4 C++] FRotator로 ForwardVector와 RightVector 구하기  (0) 2022.02.07
[Unreal Engine 4 C++] 약 포인터(TWeakObjectPtr)  (0) 2021.10.14
'Unreal Engine/C++' 카테고리의 다른 글
  • [Unreal Engine 4 C++] UENUM을 USTRUCT에서 변수로 사용하기
  • [Unreal Engine 4 C++] SetTimer를 활용한 Delay구현
  • [Unreal Engine 4 C++] DrawDebugLine의 InWorld인자 주의점
  • [Unreal Engine 4 C++] FRotator로 ForwardVector와 RightVector 구하기
한돌이
한돌이
GameProgramer 취업준비 중 onestone3647@gmail.com
한돌이
Lykan Studio
한돌이
전체
오늘
어제
  • 분류 전체보기 (102)
    • Daily Life (0)
    • Project (15)
      • Replica (10)
      • CE (1)
      • T (4)
    • Unreal Engine (74)
      • C++ (40)
      • Blueprint (5)
      • AI (5)
      • Effect (3)
      • UMG (2)
      • Error (2)
      • etc. (16)
    • Study (8)
      • C++ (2)
      • Algorithm (0)
      • API (4)
      • Git (2)
    • etc. (4)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • GIT
  • 오류
  • Unreal Engine 4 C++
  • ETC
  • etc.
  • threadsafe
  • 자소서
  • .etc
  • project
  • ProjectT
  • Unreal Engine 4 Error
  • Project T
  • c++
  • Project Replica
  • ADB
  • Unreal Engine4
  • UnrealEngine4
  • Study
  • error
  • Unreal Engine
  • ProjectReplica
  • Unreal Engine etc.
  • Unreal Engine 4
  • Unreal Engine 5
  • Unreal Engine4 Effect
  • daily life
  • API

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.2
한돌이
[Unreal Engine 4 C++] C++에서 구현한 정적 함수와 일반 함수의 블루프린트에서 사용시 차이점
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.