Version: 2022.3
언어: 한국어
public int ignoreLayers ;

설명

Which object layers are ignored by the projector.

See layer mask.

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); } }