Navigation
API > API/Developer > API/Developer/HierarchicalLODUtilities
FHierarchicalLODUtilities implementation
| Name | FHierarchicalLODUtilities |
| Type | class |
| Header File | /Engine/Source/Developer/HierarchicalLODUtilities/Public/HierarchicalLODUtilities.h |
| Include Path | #include "HierarchicalLODUtilities.h" |
Syntax
class FHierarchicalLODUtilities : public IHierarchicalLODUtilities
Implements Interfaces
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FHierarchicalLODUtilities() |
HierarchicalLODUtilities.h |
Functions
Public
Overridden from IHierarchicalLODUtilities
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const bool AddActorToCluster
(
AActor* InActor, |
Adds an actor to the given cluster | HierarchicalLODUtilities.h | |
virtual const bool AreActorsClustered
(
const TArray< AActor* >& InActors |
Checks if all actors are part of a cluster | HierarchicalLODUtilities.h | |
virtual const bool AreActorsInSameHLODLevel
(
const TArray< AActor* >& InActors |
Checks if all actors are in the same HLOD level | HierarchicalLODUtilities.h | |
virtual const bool AreActorsInSamePersistingLevel
(
const TArray< AActor* >& InActors |
Checks if all actors have the same outer world | HierarchicalLODUtilities.h | |
virtual const bool AreClustersInSameHLODLevel
(
const TArray< ALODActor* >& InLODActors |
Checks if all clusters are in the same HLOD level | HierarchicalLODUtilities.h | |
virtual bool BuildStaticMeshForLODActor
(
ALODActor* LODActor, |
Builds a virtual mesh object for the given LODACtor | HierarchicalLODUtilities.h | |
virtual float CalculateDrawDistanceFromScreenSize
(
const float SphereRadius, |
HierarchicalLODUtilities.h | ||
virtual float CalculateScreenSizeFromDrawDistance
(
const float SphereRadius, |
Computes the Screensize of the given Sphere taking into account the ProjectionMatrix and distance | HierarchicalLODUtilities.h | |
virtual void CleanStandaloneAssetsInPackage
(
UPackage* InPackage |
Cleans any standalone flags for meshes, textures and materials. | HierarchicalLODUtilities.h | |
virtual int32 ComputeStaticMeshLODLevel
(
const TArray< FStaticMeshSourceModel >& SourceModels, |
Computes which LOD level of a Mesh corresponds to the given Distance (calculates closest ScreenSize with distance) | HierarchicalLODUtilities.h | |
virtual ALODActor * CreateNewClusterActor
(
UWorld* InWorld, |
Creates a new cluster actor in the given InWorld with InLODLevel as HLODLevel | HierarchicalLODUtilities.h | |
virtual ALODActor * CreateNewClusterFromActors
(
UWorld* InWorld, |
Creates a new cluster in InWorld with InActors as sub actors | HierarchicalLODUtilities.h | |
virtual UPackage * CreateOrRetrieveLevelHLODPackage
(
const ULevel* InLevel, |
Creates or retrieves the HLOD package that is created for the given level | HierarchicalLODUtilities.h | |
virtual UHLODProxy * CreateOrRetrieveLevelHLODProxy
(
const ULevel* InLevel, |
Creates or retrieves the HLOD proxy that is created for the given level | HierarchicalLODUtilities.h | |
virtual AHierarchicalLODVolume * CreateVolumeForLODActor
(
ALODActor* InLODActor, |
Creates a HierarchicalLODVolume using the bounds of a given LODActor | HierarchicalLODUtilities.h | |
virtual void DeleteLODActorsInHLODLevel
(
UWorld* InWorld, |
Deletes all the ALODActors with the given HLODLevelIndex inside off InWorld | HierarchicalLODUtilities.h | |
virtual void DestroyCluster
(
ALODActor* InActor |
Deletes the given cluster's data and instance in the world | HierarchicalLODUtilities.h | |
virtual void DestroyLODActor
(
ALODActor* InActor |
Destroys an LODActor instance | HierarchicalLODUtilities.h | |
virtual void ExcludeActorFromClusterGeneration
(
AActor* InActor |
Excludes an actor from the cluster generation process | HierarchicalLODUtilities.h | |
virtual void ExtractStaticMeshActorsFromLODActor
(
ALODActor* LODActor, |
Extracts all the virtual Mesh Actors from the given LODActor's SubActors array | HierarchicalLODUtilities.h | |
virtual void ExtractSubActorsFromLODActor
(
AActor* Actor, |
Recursively retrieves Actors from a LODActor and its child LODActors | HierarchicalLODUtilities.h | |
virtual FString GetLevelHLODProxyName
(
const FString& InLevelPackageName, |
Get the name of a HLOD proxy given the name of a level's package | HierarchicalLODUtilities.h | |
virtual int32 GetLODLevelForScreenSize
(
const UStaticMeshComponent* StaticMeshComponent, |
Computes the LODLevel for a StaticMeshComponent taking into account the ScreenSize | HierarchicalLODUtilities.h | |
virtual ALODActor * GetParentLODActor
(
const AActor* InActor |
Returns the ALODActor parent for the given InActor, nullptr if none available | HierarchicalLODUtilities.h | |
virtual FString GetWildcardOfHLODPackagesForPackage
(
const FString& PackageName |
Retrieves a wildcard that includes all possible HLOD packagenames that could be used by the given package. | HierarchicalLODUtilities.h | |
virtual void HandleActorModified
(
AActor* InActor |
Handles changes in actors for the current world, checks if InActor is part of a HLOD cluster and if so set its dirty-flag | HierarchicalLODUtilities.h | |
virtual const bool IsActorClustered
(
const AActor* InActor |
Checks if an actor is clustered | HierarchicalLODUtilities.h | |
virtual bool IsWorldUsedForStreaming
(
const UWorld* InWorld |
Checks whether or not the given InWorld is used as a streaming level by any other World in the level | HierarchicalLODUtilities.h | |
virtual const bool MergeClusters
(
ALODActor* TargetCluster, |
Merges two clusters together | HierarchicalLODUtilities.h | |
virtual const bool RemoveActorFromCluster
(
AActor* InActor |
Removes the given actor from it's parent cluster | HierarchicalLODUtilities.h | |
virtual UPackage * RetrieveLevelHLODPackage
(
const ULevel* InLevel, |
Retrieves the HLOD package that is created for the given level | HierarchicalLODUtilities.h | |
virtual UHLODProxy * RetrieveLevelHLODProxy
(
const ULevel* InLevel, |
Retrieves the HLOD proxy that is created for the given level | HierarchicalLODUtilities.h | |
virtual EClusterGenerationError ShouldGenerateCluster
(
AActor* Actor, |
Returns whether or not the given actor is eligible for creating a HLOD cluster creation | HierarchicalLODUtilities.h |