Navigation
Unreal Engine C++ API Reference > Editor > MaterialEditor
References
Module | MaterialEditor |
Header | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
Include | #include "MaterialEditorUtilities.h" |
Syntax
class FMaterialEditorUtilities
Constructors
No constructors are accessible with public or protected access.
Functions
Type | Name | Description |
---|---|---|
void | AddToSelection ( const UEdGraph* Graph, UMaterialExpression* Expressio... ) | Add the specified object to the list of selected objects |
void | BringFocusAttentionOnObject ( const UObject* ObjectToFocusOn ) | Get IMaterialEditor to focus on given object, if it exists |
void | BuildTextureStreamingData ( UMaterialInterface* MaterialIn... ) | Build the texture streaming data for a given material. |
bool | CanPasteNodes ( const UEdGraph* Graph ) | Can we paste to this graph? |
UMaterialExp... | CreateNewMaterialExpression ( const UEdGraph* Graph, UClass* NewExpressionClass, const FVector2D& NodePos, bool bAutoSelect, bool bAutoAssignResource ) | Creates a new material expression of the specified class on the material represented by a graph. |
UMaterialExp... | CreateNewMaterialExpressionComment ( const UEdGraph* Graph, const FVector2D& NodePos ) | Creates a new material expression comment on the material represented by a graph. |
UMaterialExp... | CreateNewMaterialExpressionComposite ( const UEdGraph* Graph, const FVector2D& NodePos ) | Creates a new material expression composite on the material represented by a graph. |
void | DeleteNodes ( const UEdGraph* Graph, const TArray< UEdGraphNode* > ... ) | Delete the specified nodes from the graph. |
void | DeleteSelectedNodes ( const UEdGraph* Graph ) | Disconnects and removes the selected material graph nodes. |
const FFunct... | FindInputById ( const UMaterialExpressionFunctionIn..., const TArray< FFunctionExpressionIn... ) | Finds an input in the passed in array with a matching Id. |
void | ForceRefreshExpressionPreviews ( const UEdGraph* Graph ) | Refreshes all material expression previews, regardless of whether or not realtime previews are enabled. |
FMaterialRen... | GetExpressionPreview ( const UEdGraph* Graph, UMaterialExpression* InExpress... ) | Get a preview material render proxy for an expression |
TSharedPtr< ... | GetIMaterialEditorForObject ( const UObject* ObjectToFocusOn ) | Get IMaterialEditor for given object, if it exists |
void | GetMaterialExpressionActions ( FGraphActionMenuBuilder& ActionMen..., bool bMaterialFunction ) | Get all actions for placing material expressions |
int32 | GetNumberOfSelectedNodes ( const UEdGraph* Graph ) | Gets the number of selected nodes on this graph |
FText | GetOriginalObjectName ( const UEdGraph* Graph ) | Gets the name of the material or material function that we are editing |
bool | GetStaticSwitchExpressionValue ( UMaterialInstance* MaterialIns..., UMaterialExpression* SwitchVal..., bool& OutValue, FGuid& OutExpressionID, TArray< FGetVisibleMaterialParamete... ) | Returns the value for a static switch material expression. |
void | GetVisibleMaterialParameters ( const UMaterial* Material, UMaterialInstance* MaterialIns..., TArray< FMaterialParameterInfo >& ... ) | Retrieves all visible parameters within the material. |
void | InitExpressions ( UMaterial* Material ) | Populates the specified material's Expressions array (eg if cooked out or old content). |
bool | IsMaterialExpressionInFavorites ( UMaterialExpression* InExpress... ) | Check whether an expression is in the favourites list |
void | OnOpenFunction ( const FAssetData InFunction ) | |
void | OnOpenMaterial ( const FAssetData InMaterial ) | Commands for the Parents menu |
void | OnShowFunctionInContentBrowser ( const FAssetData InFunction ) | |
void | OnShowMaterialInContentBrowser ( const FAssetData InMaterial ) | |
void | PasteNodesHere ( UEdGraph* Graph, const FVector2D& Location ) | Perform paste on graph, at location |
void | UpdateDetailView ( const UEdGraph* Graph ) | |
void | UpdateMaterialAfterGraphChange ( const UEdGraph* Graph ) | Re-links the material and updates its representation in the editor |
void | UpdateSearchResults ( const UEdGraph* Graph ) | Updates the material editor search results |