Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ignoreLayers

Which object layers are ignored by the projector.
Read time 1 minuteLast updated 11 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 int ignoreLayers { get; set; }

Remarks

By default this is zero - i.e. no layers are ignored. Each set bit in
ignoreLayers
will make this layer not affected by the projector.
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Projector proj = GetComponent<Projector>(); // Make the projector ignore Default (0) layer proj.ignoreLayers = (1 << 0); }}
Additional Resources: projector component, Layers.