UE5_StaticMesh_Gen_Build_MD.../Source/SMC_Build/MyBlueprintFunctionLibrary.cpp

16 lines
449 B
C++
Raw Normal View History

2021-06-30 17:11:29 +08:00
// Fill out your copyright notice in the Description page of Project Settings.
#include "MyBlueprintFunctionLibrary.h"
void UMyBlueprintFunctionLibrary::MarkRenderStateDirty(UStaticMeshComponent* Comp)
{
// Comp->MarkRenderStateDirty();
Comp->GetScene()->UpdatePrimitiveDistanceFieldSceneData_GameThread(Comp);
}
void UMyBlueprintFunctionLibrary::MarkRenderDynamicDataDirty(UStaticMeshComponent* Comp)
{
Comp->MarkRenderDynamicDataDirty();
}