Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FLevelEditorViewportClient
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/LevelEditorViewport.h |
| Include | #include "LevelEditorViewport.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/LevelEditorViewport.cpp |
static UObject &42; GetOrCreateMaterialFromTexture
&40;
UTexture &42; UnrealTexture
&41;
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 The material that uses this texture, or null if we couldn't find or create one
Parameters
| Name | Description |
|---|---|
| UnrealTexture | Texture that we need a material for |