Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FLevelEditorViewportClient
Description
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
| Name | GetOrCreateMaterialFromTexture |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h |
| Include Path | #include "LevelEditorViewport.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp |
static UObject * GetOrCreateMaterialFromTexture
(
UTexture * UnrealTexture
)
The material that uses this texture, or null if we couldn't find or create one
Parameters
| Name | Remarks |
|---|---|
| UnrealTexture | Texture that we need a material for |