Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


material

The material that will be projected onto every object.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Projector component is deprecated now that the Built-In Render Pipeline is deprecated. To use an alternative, refer to the documentation in the component help icon. #from(6000.5)
public Material material { get; set; }

Remarks

Note that unlike Renderer.material, this returns a shared material reference and not a unique duplicate.
Projector does nothing if it has no material set up. The Standard Assets package contains an example of Projector's material in Blob-Shadow folder.
Additional Resources: projector component, Material class.