← All docs

Materials

Claunity can create materials, adjust their properties, and assign them to objects. It automatically detects whether your project uses URP, HDRP, or the Built-in render pipeline and picks the correct shader.

Render pipeline detection

Claunity checks the scene for pipeline components before creating materials. URP projects get Universal Render Pipeline/Lit, HDRP gets HDRP/Lit, Built-in gets Standard. You can always specify a shader explicitly.


Creating materials

Create a basic material

"Create a red material called "EnemyMat" in Assets/Materials"

Create with specific shader

"Create a URP Lit material called "WaterSurface" with a blue-green color and metallic value of 0.8"

Create a transparent material

"Create a transparent material called "GlassMat" with white color and alpha 0.3"

Assigning materials

Assign to an object

"Assign the "EnemyMat" material to the "Enemy" object"

Create and assign in one step

"Create a dark grey ground material and apply it to the "Terrain" object"

Modifying materials

Change color

"Change the color of the "PlayerMat" material to bright orange"

Adjust metallic and smoothness

"Make the "ArmorMat" more metallic — set metallic to 0.9 and smoothness to 0.7"

Change shader

"Switch the "LeafMat" material to use the URP/Nature/SpeedTree shader"