3 #include "CoreMinimal.h" 4 #include "Materials/MaterialInstanceDynamic.h" 5 #include "Engine/InstancedStaticMesh.h" 6 #include "Components/HierarchicalInstancedStaticMeshComponent.h" 8 #include "TaggedComponent.generated.h" 10 UCLASS( meta=(BlueprintSpawnableComponent) )
18 virtual FPrimitiveSceneProxy * CreateSceneProxy()
override;
19 virtual void TickComponent(
float DeltaTime,
enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction)
override;
20 virtual void OnRegister()
override;
21 virtual FBoxSphereBounds CalcBounds(
const FTransform & LocalToWorld)
const ;
24 void SetColor(FLinearColor color);
31 UMaterial * TaggedMaterial;
34 UMaterialInstanceDynamic * TaggedMID;
36 bool bSkeletalMesh = false;
38 FPrimitiveSceneProxy * CreateSceneProxy(UStaticMeshComponent * StaticMeshComponent);
39 FPrimitiveSceneProxy * CreateSceneProxy(USkeletalMeshComponent * SkeletalMeshComponent);
40 FPrimitiveSceneProxy * CreateSceneProxy(UHierarchicalInstancedStaticMeshComponent * MeshComponent);
41 FPrimitiveSceneProxy * CreateSceneProxy(UInstancedStaticMeshComponent * MeshComponent);
44 bool bShouldWaitFrame = true;
45 int NumFramesToWait = 2;
51 FTaggedStaticMeshSceneProxy(UStaticMeshComponent * Component,
bool bForceLODsShareStaticLighting, UMaterialInstance * MaterialInstance);
53 virtual FPrimitiveViewRelevance GetViewRelevance(
const FSceneView * View)
const override;
62 FTaggedSkeletalMeshSceneProxy(
const USkinnedMeshComponent * Component, FSkeletalMeshRenderData * InSkeletalMeshRenderData, UMaterialInstance * MaterialInstance);
64 virtual FPrimitiveViewRelevance
GetViewRelevance(
const FSceneView * View)
const override;
75 virtual FPrimitiveViewRelevance
GetViewRelevance(
const FSceneView * View)
const override;
87 virtual FPrimitiveViewRelevance
GetViewRelevance(
const FSceneView * View)
const override;
FTaggedSkeletalMeshSceneProxy(const USkinnedMeshComponent *Component, FSkeletalMeshRenderData *InSkeletalMeshRenderData, UMaterialInstance *MaterialInstance)
UMaterialInstance * TaggedMaterialInstance
UMaterialInstance * TaggedMaterialInstance
UMaterialInstance * TaggedMaterialInstance
UMaterialInstance * TaggedMaterialInstance
virtual FPrimitiveViewRelevance GetViewRelevance(const FSceneView *View) const override
static LaneMarking::Color GetColor(std::string str)