Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_34
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/SceneUtilityFunctions.h |
| Include | #include "GeometryScript/SceneUtilityFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/SceneUtilityFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|Scene",
Meta=(AutoCreateRefTerm="SourceMeshes, SourceMeshTransforms, TransparentMeshes, TransparentMeshTransforms, OccludeMeshes, OccludeMeshTransforms, OcclusionOptions"))
static void DetermineMeshOcclusion
(
const TArray < UDynamicMesh * > & SourceMeshes,
const TArray < FTransform > & SourceMeshTransforms,
TArray < bool > & OutMeshIsHidden,
const TArray < UDynamicMesh * > & TransparentMeshes,
const TArray < FTransform > & TransparentMeshTransforms,
TArray < bool > & OutTransparentMeshIsHidden,
const TArray < UDynamicMesh * > & OccludeMeshes,
const TArray < FTransform > & OccludeMeshTransforms,
const FGeometryScriptDetermineMeshOcclusionOptions & OcclusionOptions,
UGeometryScriptDebug * Debug
)
Remarks
Determine which meshes are entirely hidden by other meshes in the set, when viewed from outside.
Parameters
| Name | Description |
|---|---|
| SourceMeshes | Meshes to test for occlusion. Note: The same mesh may appear multiple times in this array, if it is instanced with different transforms. |
| SourceMeshTransforms | A transform for each source mesh. Array must have the same length as SourceMeshes. |
| OutMeshIsHidden | Array will be filled with a bool per source mesh, indicating whether that mesh is hidden (true) or visible (false) |
| TransparentMeshes | Transparent source meshes, to test for occlusion but which do not occlude. |
| TransparentMeshTransforms | Array of transforms for each transparent mesh |
| OutTransparentMeshIsHidden | Array will be filled with a bool per transparent mesh, indicating whether that mesh is hidden (true) or visible (false) |
| OccludeMeshes | Array of optional meshes which can occlude SourceMeshes, but for which we will not test occlusion. |
| OccludeMeshTransforms | Array of transforms for each occlude mesh. Array must have the same length as OccludeMeshes. |
| Options | Settings to control how occlusion is tested |