Skip to content
Jigwright
HullForge docs

Add Material Node

Add an expression node to a material graph. The node is created wired to NOTHING, which is a graph that compiles and a node that does not exist as far as the shader is concerned until it is connected.

hf_add_material_nodeWrite

Arguments

NameTypeDescription
materialreqstring
node_classreqstringExpression class. The MaterialExpression prefix and a leading U are both optional: Constant, TextureSample, ScalarParameter, Multiply, Add, LinearInterpolate.
forceboolean
= false
Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first.
xinteger
= 0
Editor graph position. Cosmetic, and worth setting: nodes added at the same spot stack invisibly.
yinteger
= 0

Nearby in Materials:

All 28 tools in Materials — 19 more not listed here.