WjWorld
Loading...
Searching...
No Matches
AWjWorldPlacementPreviewActor Class Reference

#include <WjWorldPlacementPreviewActor.h>

Inheritance diagram for AWjWorldPlacementPreviewActor:

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

Detailed Description

배치 프리뷰 액터 마우스를 따라다니며 유효/무효 색상을 표시

Constructor & Destructor Documentation

◆ AWjWorldPlacementPreviewActor()

AWjWorldPlacementPreviewActor::AWjWorldPlacementPreviewActor ( )

Member Function Documentation

◆ GetCurrentYaw()

float AWjWorldPlacementPreviewActor::GetCurrentYaw ( ) const
inline

현재 Yaw 값

◆ InitializePreview()

void AWjWorldPlacementPreviewActor::InitializePreview ( const FPlaceableObjectDefinition & Definition)

오브젝트 정의로 프리뷰 초기화 (메시 비동기 로드)

◆ IsPreviewValid()

bool AWjWorldPlacementPreviewActor::IsPreviewValid ( ) const
inline

유효 상태

◆ RotatePreview()

void AWjWorldPlacementPreviewActor::RotatePreview ( float DeltaYaw)

Yaw 회전 누적

◆ SetPreviewValid()

void AWjWorldPlacementPreviewActor::SetPreviewValid ( bool bInIsValid)

유효/무효 색상 전환

◆ UpdatePreviewTransform()

void AWjWorldPlacementPreviewActor::UpdatePreviewTransform ( const FVector & Location,
const FRotator & Rotation )

프리뷰 위치/회전 갱신

Member Data Documentation

◆ DynamicMaterial

TObjectPtr<UMaterialInstanceDynamic> AWjWorldPlacementPreviewActor::DynamicMaterial
protected

◆ InvalidColor

FLinearColor AWjWorldPlacementPreviewActor::InvalidColor = FLinearColor(1.0f, 0.0f, 0.0f, 0.5f)
protected

◆ PreviewMeshComponent

TObjectPtr<UStaticMeshComponent> AWjWorldPlacementPreviewActor::PreviewMeshComponent
protected

◆ PreviewOpacity

float AWjWorldPlacementPreviewActor::PreviewOpacity = 0.5f
protected

◆ ValidColor

FLinearColor AWjWorldPlacementPreviewActor::ValidColor = FLinearColor(0.0f, 1.0f, 0.0f, 0.5f)
protected

The documentation for this class was generated from the following files: