Creating Dynamic Material
Last updated
Last updated
Navigate to the Content Browser, right-click, and choose "Material."
Rename the material according to your workflow for improved organization. In this example, we'll use the name "m_Plane."
Double-click on the "m_Plane" material to switch to the Material Editor interface.
Right-click on the Material Editor node graph canvas, then locate and choose the "TextureSampleParameter2D" node.
While the "TextureSampleParameter2D" node is selected, navigate to the Details menu on the left side and edit the "Parameter Name" field found in the General section.
Navigate to the "Material Expression Texture Base" property group. From the Texture property dropdown menu, choose the ZDNoMedia texture asset.
Connect the RGB output of the TextureSampleParameter2D node to both the Base Color and Emissive Color inputs of the "m_Plane" node.
Save the material by clicking on the Save button.