# What is Material Sample Node?

**URL:** <https://forums.unrealengine.com/t/what-is-material-sample-node/2649979>\
**Category:** Asset Creation\
**Tags:** unreal-engine, nodes, question\
**Created:** [August 22, 2025, 9:05am UTC](https://forums.unrealengine.com/t/what-is-material-sample-node/2649979 "2025-08-22T09:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Extrahdmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Post date:** [August 22, 2025, 9:05am UTC](https://forums.unrealengine.com/t/what-is-material-sample-node/2649979/1 "2025-08-22T09:05:40Z")

</div>

I found this node when I was trying to figure out how to get parameters from other materials within the material editor.  
It seems possible to directly reference materials, but I can’t find any information on how to use it.  
Does anyone know anything about this node?

![Node](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/4/13401b7340695b35471b359691475448b6a91450.png)

 ![Details](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/5/d15d33a6272469f847ad99931627d1bc64b68518.png)

---

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [January 26, 2026, 5:41am UTC](https://forums.unrealengine.com/t/what-is-material-sample-node/2649979/2 "2026-01-26T05:41:09Z")

</div>

This is a prototype that isn’t supported for now. You can right-click the node → “Goto Definition” to see more details.

```cpp
#if ENABLE_MATERIAL_SAMPLE_PROTOTYPE
	ENGINE_API virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
	ENGINE_API virtual int32 CompilePreview(FMaterialCompiler* Compiler, int32 OutputIndex) override;
	ENGINE_API virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
	virtual bool IsResultSubstrateMaterial(int32 OutputIndex) override;
	virtual FSubstrateOperator * SubstrateGenerateMaterialTopologyTree(class FMaterialCompiler* Compiler, class UMaterialExpression* Parent, int32 OutputIndex) override; 

	int32 DynamicCompile(FMaterialCompiler* Compiler, int32 OutputIndex, bool bCompilePreview);
#endif

```

In brief, this node will work with Substrate and output a slab.  
However, it is disabled by the macro `ENABLE_MATERIAL_SAMPLE_PROTOTYPE`.

I downloaded the latest source code, looked for the macro in `/Engine/Source/Runtime/Engine/Internal/Materials/MaterialExpressionMaterialSample.h` and set it to 1.

Here’s what I can get so far:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/b/abb2af595a59a875fd20ba49ce9777379fe69eb6.png)
