Navigation
API > API/Editor > API/Editor/MaterialEditor
| Name | FMaterialEditorUtilities |
| Type | class |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
| Include Path | #include "MaterialEditorUtilities.h" |
Syntax
class FMaterialEditorUtilities
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMaterialEditorUtilities() |
Constructor | MaterialEditorUtilities.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddMaterialExpressionCategory
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
Adds a category of Material Expressions to an action builder | MaterialEditorUtilities.h | |
static void AddMaterialExpressionCategory
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
Adds a category of Material Expressions to an action builder | MaterialEditorUtilities.h | |
static void AddToSelection
(
const UEdGraph* Graph, |
Add the specified object to the list of selected objects | MaterialEditorUtilities.h | |
static void BringFocusAttentionOnObject
(
const UObject* ObjectToFocusOn |
Get IMaterialEditor to focus on given object, if it exists | MaterialEditorUtilities.h | |
static void BuildTextureStreamingData
(
UMaterialInterface* MaterialInterface |
Build the texture streaming data for a given material. | MaterialEditorUtilities.h | |
static bool CanPasteNodes
(
const UEdGraph* Graph |
Can we paste to this graph? | MaterialEditorUtilities.h | |
static MaterialExpressionClass * CreateNewMaterialExpression
(
const UEdGraph* Graph, |
Creates a new material expression of the specified class on the material represented by a graph. | MaterialEditorUtilities.h | |
static UMaterialExpression * CreateNewMaterialExpression
(
const UEdGraph* Graph, |
Creates a new material expression of the specified class on the material represented by a graph. | MaterialEditorUtilities.h | |
static UMaterialExpressionComment * CreateNewMaterialExpressionComment
(
const UEdGraph* Graph, |
Creates a new material expression comment on the material represented by a graph. | MaterialEditorUtilities.h | |
static UMaterialExpressionComposite * CreateNewMaterialExpressionComposite
(
const UEdGraph* Graph, |
Creates a new material expression composite on the material represented by a graph. | MaterialEditorUtilities.h | |
static void DeleteNodes
(
const UEdGraph* Graph, |
Delete the specified nodes from the graph. | MaterialEditorUtilities.h | |
static void DeleteSelectedNodes
(
const UEdGraph* Graph |
Disconnects and removes the selected material graph nodes. | MaterialEditorUtilities.h | |
static const FFunctionExpressionInput * FindInputById
(
const UMaterialExpressionFunctionInput* InputExpression, |
Finds an input in the passed in array with a matching Id. | MaterialEditorUtilities.h | |
static void ForceRefreshExpressionPreviews
(
const UEdGraph* Graph |
Refreshes all material expression previews, regardless of whether or not realtime previews are enabled. | MaterialEditorUtilities.h | |
static FMaterialRenderProxy * GetExpressionPreview
(
const UEdGraph* Graph, |
Get a preview material render proxy for an expression | MaterialEditorUtilities.h | |
static TSharedPtr< class IMaterialEditor > GetIMaterialEditorForObject
(
const UObject* ObjectToFocusOn |
Get IMaterialEditor for given object, if it exists | MaterialEditorUtilities.h | |
static void GetMaterialExpressionActions
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
Get all actions for placing material expressions | MaterialEditorUtilities.h | |
static void GetMaterialExpressionActions
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
Get all actions for placing material expressions | MaterialEditorUtilities.h | |
static int32 GetNumberOfSelectedNodes
(
const UEdGraph* Graph |
Gets the number of selected nodes on this graph | MaterialEditorUtilities.h | |
static FText GetOriginalObjectName
(
const UEdGraph* Graph |
Gets the name of the material or material function that we are editing | MaterialEditorUtilities.h | |
static bool GetStaticSwitchExpressionValue
(
UMaterialInstance* MaterialInstance, |
Returns the value for a static switch material expression. | MaterialEditorUtilities.h | |
static void GetVisibleMaterialParameters
(
const UMaterial* Material, |
Retrieves all visible parameters within the material. | MaterialEditorUtilities.h | |
static void GetVisibleMaterialParametersFromExpression
(
FMaterialExpressionKey MaterialExpressionKey, |
Recursively walks the expression tree and parses the visible expression branches. | MaterialEditorUtilities.h | |
static bool HasCompatibleConnection
(
UClass* ExpressionClass, |
MaterialEditorUtilities.h | ||
static bool HasCompatibleConnection
(
UClass* ExpressionClass, |
Checks whether a Material Expression class has any connections that are compatible with a type/direction | MaterialEditorUtilities.h | |
static void InitExpressions
(
UMaterial* Material |
Populates the specified material's Expressions array (eg if cooked out or old content). | MaterialEditorUtilities.h | |
static bool IsMaterialExpressionInFavorites
(
UMaterialExpression* InExpression |
Check whether an expression is in the favourites list | MaterialEditorUtilities.h | |
static TSharedPtr< IAssetReferenceFilter > MakeMaterialAssetReferenceFilter
(
const UEdGraph* Graph |
Creates an IAssetReferenceFilter that can be used to check if an asset is valid to be used with this material. | MaterialEditorUtilities.h | |
static void MarkMaterialDirty
(
const UEdGraph* Graph |
Mark the material as dirty. | MaterialEditorUtilities.h | |
static void OnOpenFunction
(
const FAssetData InFunction |
MaterialEditorUtilities.h | ||
static void OnOpenMaterial
(
const FAssetData InMaterial |
Commands for the Parents menu | MaterialEditorUtilities.h | |
static void OnShowFunctionInContentBrowser
(
const FAssetData InFunction |
MaterialEditorUtilities.h | ||
static void OnShowMaterialInContentBrowser
(
const FAssetData InMaterial |
MaterialEditorUtilities.h | ||
static void OpenSelectedParentEditor
(
UMaterialFunctionInterface* InMaterialFunction |
MaterialEditorUtilities.h | ||
static void OpenSelectedParentEditor
(
UMaterialInterface* InMaterialInterface |
MaterialEditorUtilities.h | ||
static void PasteNodesHere
(
UEdGraph* Graph, |
Perform paste on graph, at location | MaterialEditorUtilities.h | |
static void RefreshPostProcessPreviewMaterials
(
UMaterialInterface* ExcludeMaterialInterface, |
Triggers a refresh or redraw for post process preview materials and material instances. | MaterialEditorUtilities.h | |
static void UpdateDetailView
(
const UEdGraph* Graph |
MaterialEditorUtilities.h | ||
static void UpdateMaterialAfterGraphChange
(
const UEdGraph* Graph |
Re-links the material and updates its representation in the editor | MaterialEditorUtilities.h | |
static void UpdateSearchResults
(
const UEdGraph* Graph |
Updates the material editor search results | MaterialEditorUtilities.h |