|
WjWorld
|
#include <WjWorldPlacementPreviewActor.h>
Public Member Functions | |
| AWjWorldPlacementPreviewActor () | |
| void | InitializePreview (const FPlaceableObjectDefinition &Definition) |
| void | UpdatePreviewTransform (const FVector &Location, const FRotator &Rotation) |
| void | SetPreviewValid (bool bInIsValid) |
| void | RotatePreview (float DeltaYaw) |
| float | GetCurrentYaw () const |
| bool | IsPreviewValid () const |
Protected Attributes | |
| TObjectPtr< UStaticMeshComponent > | PreviewMeshComponent |
| TObjectPtr< UMaterialInstanceDynamic > | DynamicMaterial |
| FLinearColor | ValidColor = FLinearColor(0.0f, 1.0f, 0.0f, 0.5f) |
| FLinearColor | InvalidColor = FLinearColor(1.0f, 0.0f, 0.0f, 0.5f) |
| float | PreviewOpacity = 0.5f |
배치 프리뷰 액터 마우스를 따라다니며 유효/무효 색상을 표시
| AWjWorldPlacementPreviewActor::AWjWorldPlacementPreviewActor | ( | ) |
|
inline |
현재 Yaw 값
| void AWjWorldPlacementPreviewActor::InitializePreview | ( | const FPlaceableObjectDefinition & | Definition | ) |
오브젝트 정의로 프리뷰 초기화 (메시 비동기 로드)
|
inline |
유효 상태
| void AWjWorldPlacementPreviewActor::RotatePreview | ( | float | DeltaYaw | ) |
Yaw 회전 누적
| void AWjWorldPlacementPreviewActor::SetPreviewValid | ( | bool | bInIsValid | ) |
유효/무효 색상 전환
| void AWjWorldPlacementPreviewActor::UpdatePreviewTransform | ( | const FVector & | Location, |
| const FRotator & | Rotation ) |
프리뷰 위치/회전 갱신
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |