UEditorStaticMeshLibrary::GeneratePlanarUVChannel

Generates planar UV mapping in the specified UV channel on the given LOD of a StaticMesh.

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 bool GeneratePlanarUVChannel
(
    UStaticMesh * StaticMesh,
    int32 LODIndex,
    int32 UVChannelIndex,
    const FVector & Position,
    const FRotator & Orientation,
    const FVector2D & Tiling
)

Remarks

Generates planar UV mapping in the specified UV channel on the given LOD of a StaticMesh.

Returns

true if the UV mapping was generated.

Parameters

Parameter

Description

StaticMesh

Static mesh on which to generate the UV mapping.

LODIndex

Index of the StaticMesh LOD.

UVChannelIndex

Channel where to save the UV mapping.

Position

Position of the center of the projection gizmo.

Orientation

Rotation to apply to the projection gizmo.

Tiling

The UV tiling to use to generate the UV mapping.

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