UEditorStaticMeshLibrary::EnableSectionCastShadow

Enables/disables mesh section shadow casting for a specific LOD.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorStaticMeshLibrary.h

Include

#include "EditorStaticMeshLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorStaticMeshLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | StaticMesh")
static void EnableSectionCastShadow
(
    UStaticMesh * StaticMesh,
    bool bCastShadow,
    int32 LODIndex,
    int32 SectionIndex
)

Remarks

Enables/disables mesh section shadow casting for a specific LOD.

Parameters

Parameter

Description

StaticMesh

Static mesh to Enables/disables shadow casting from.

bCastShadow

If the section should cast shadow.

LODIndex

Index of the StaticMesh LOD.

SectionIndex

Index of the StaticMesh Section.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss