javasamurai
New member
I am trying to update the culling for the sniper camera to show nothing. In gameplay, the culling still remains the same even though the state is active. Check attachment for the issue.
public LayerMask CullingMask { get { return m_CullingMask; } set {
if (m_CullingMask != value) {
m_CullingMask = value;
UpdateFirstPersonCamera(m_CharacterLocomotion.FirstPersonPerspective);
}
} }
public LayerMask CullingMask { get { return m_CullingMask; } set {
if (m_CullingMask != value) {
m_CullingMask = value;
m_Camera.cullingMask &= m_CullingMask;
}
} }