Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/MaterialGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdGraphSchema
- UMaterialGraphSchema
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphSchema.h |
| Include | #include "MaterialGraph/MaterialGraphSchema.h" |
Syntax
class UMaterialGraphSchema : public UEdGraphSchema
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialGraphSchema
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ArePinsCompatible_Internal
(
const UEdGraphPin* InputPin, |
Check whether the types of pins are compatible | |
| bool | ConnectionCausesLoop
(
const UEdGraphPin* InputPin, |
Check whether connecting these pins would cause a loop | |
| uint32 | GetMaterialValueType
(
const UEdGraphPin* MaterialPin |
Gets the type of this pin (must be part of a UMaterialGraphNode_Base) | |
| void | GetPaletteActions
(
FGraphActionMenuBuilder& ActionMenuBuilder, |
||
| void | OnConnectToFunctionOutput
(
UEdGraphPin* InGraphPin, |
Connect a pin to one of the Material Function's outputs | |
| void | OnConnectToMaterial
(
UEdGraphPin* InGraphPin, |
Connect a pin to one of the Material's inputs | |
| void | UpdateDetailView
(
const UEdGraph* Graph |
Update the detail view | |
| void | UpdateMaterialOnDefaultValueChanged
(
const UEdGraph* Graph |
Update material when the default value of a material node's pin has changed |
Overridden from UEdGraphSchema
| Type | Name | Description | |
|---|---|---|---|
| void | BreakNodeLinks
(
UEdGraphNode& TargetNode |
Breaks all links from/to a single node | |
| void | BreakPinLinks
(
UEdGraphPin& TargetPin, |
Breaks all links from/to a single pin | |
| void | BreakSinglePinLink
(
UEdGraphPin* SourcePin, |
Breaks the link between two nodes. | |
| const FPinConnectionResponse | CanCreateConnection
(
const UEdGraphPin* A, |
Determine if a connection can be created between two pins. | |
| bool | CanEncapuslateNode
(
UEdGraphNode const& TestNode |
Can TestNode be encapsulated into a child graph? | |
| void | DroppedAssetsOnGraph
(
const TArray< struct FAssetData >& Assets, |
Called when asset(s) are dropped onto a graph background. | |
| void | Forces cached visualization data to refresh | ||
| float | GetActionFilteredWeight
(
const FGraphActionListBuilderBase::ActionGroup& InCurrentAction, |
Calculate the weight priority of a given action for the context menu. | |
| void | GetAssetsGraphHoverMessage
(
const TArray< FAssetData >& Assets, |
Allows schema to generate a tooltip (icon & message) when the specified asset(s) are dragged over the specified graph | |
| void | GetContextMenuActions
(
UToolMenu* Menu, |
Gets actions that should be added to the right-click context menu for a node or pin | |
| TSharedPtr< FEdGraphSchemaAction > | Returns schema action to create comment from implemention | ||
| int32 | Returns the current cache title refresh ID that is appropriate for the passed node | ||
| void | GetGraphContextActions
(
FGraphContextMenuBuilder& ContextMenuBuilder |
Get all actions that can be performed when right clicking on a graph or drag-releasing on a graph from a pin | |
| int32 | GetNodeSelectionCount
(
const UEdGraph* Graph |
Returns the currently selected graph node count | |
| FLinearColor | GetPinTypeColor
(
const FEdGraphPinType& PinType |
Gets the draw color of a pin based on it's type. | |
| FGraphSchemaSearchWeightModifiers | Get the weight modifiers from the console variable settings | ||
| bool | IsCacheVisualizationOutOfDate
(
int32 InVisualizationCacheID |
Checks if a CacheRefreshID is out of date | |
| void | OnPinConnectionDoubleCicked
(
UEdGraphPin* PinA, |
Handles double-clicking on a pin<->pin connection | |
| bool | SafeDeleteNodeFromGraph
(
UEdGraph* Graph, |
Perform any logic necessary to safely remove this node from the graph. | |
| bool | TryCreateConnection
(
UEdGraphPin* A, |
Try to make a connection between two pins. |
Constants
| Name | Description |
|---|---|
| ActivePinColor | Color of certain pins/connections. |
| AlphaPinColor | |
| CurrentCacheRefreshID | ID for checking dirty status of node titles against, increases whenever. |
| InactivePinColor | |
| PC_Exec | |
| PC_Mask | Allowable PinType.PinCategory values. |
| PC_MaterialInput | |
| PC_Optional | |
| PC_Required | |
| PC_ValueType | |
| PC_Void | |
| PN_Execute | |
| PSC_Alpha | |
| PSC_Blue | |
| PSC_Bool | |
| PSC_Byte | |
| PSC_Float | |
| PSC_Green | |
| PSC_Int | |
| PSC_Red | Common PinType.PinSubCategory values. |
| PSC_RG | |
| PSC_RGB | |
| PSC_RGBA | |
| PSC_Vector4 |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetBreakLinkToSubMenuActions
(
UToolMenu* Menu, |
Populating the break link to menu is handled through common pin actions on graph schemas. This function is no longer necessary. | |
| void | SelectAllInputNodes
(
UEdGraph* Graph, |
Selecting all connected nodes is now handled through common pin actions on graph schemas. See SGraphEditorImpl::SelectAllNodesInDirection. |