Navigation
API > API/Editor > API/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, |
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* MaterialInterface |
Build the texture streaming data for a given material. | |
| bool | CanPasteNodes
(
const UEdGraph* Graph |
Can we paste to this graph? | |
| UMaterialExpression * | CreateNewMaterialExpression
(
const UEdGraph* Graph, |
Creates a new material expression of the specified class on the material represented by a graph. | |
| UMaterialExpressionComment * | CreateNewMaterialExpressionComment
(
const UEdGraph* Graph, |
Creates a new material expression comment on the material represented by a graph. | |
| UMaterialExpressionComposite * | CreateNewMaterialExpressionComposite
(
const UEdGraph* Graph, |
Creates a new material expression composite on the material represented by a graph. | |
| void | DeleteNodes
(
const UEdGraph* Graph, |
Delete the specified nodes from the graph. | |
| void | DeleteSelectedNodes
(
const UEdGraph* Graph |
Disconnects and removes the selected material graph nodes. | |
| const FFunctionExpressionInput * | FindInputById
(
const UMaterialExpressionFunctionInput* InputExpression, |
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. | |
| FMaterialRenderProxy * | GetExpressionPreview
(
const UEdGraph* Graph, |
Get a preview material render proxy for an expression | |
| TSharedPtr< class IMaterialEditor > | GetIMaterialEditorForObject
(
const UObject* ObjectToFocusOn |
Get IMaterialEditor for given object, if it exists | |
| void | GetMaterialExpressionActions
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
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* MaterialInstance, |
Returns the value for a static switch material expression. | |
| void | GetVisibleMaterialParameters
(
const UMaterial* Material, |
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* InExpression |
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, |
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 |