FLevelEditorViewportClient::GetOrCreateMaterialFromTexture

Static: Given a texture, returns a material for that texture, creating a new asset if necessary.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h

Include

#include "LevelEditorViewport.h"

Source

/Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp

Syntax

static UObject * GetOrCreateMaterialFromTexture
(
    UTexture * UnrealTexture
)

Remarks

Static: Given a texture, returns a material for that texture, creating a new asset if necessary. This is used for dragging and dropping assets into the scene

Returns

The material that uses this texture, or null if we couldn't find or create one

Parameters

Parameter

Description

UnrealTexture

Texture that we need a material for

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