Skip to main content

CapsuleBlockableCamera

A class in Root.Township, Alta.ScreenshotCamera.

A BlockableCamera that counts as blocked when a capsule in front of the lens overlaps the block layers.

Constructors​

MemberWhat it is
CapsuleBlockableCamera()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float heightLength of the check capsule along the camera's forward axis.
private float radiusRadius of the check capsule.

Methods​

MemberWhat it is
protected override bool UpdateBlockInternal()Checks a capsule from the camera forward by height with radius against the settings' block layer mask.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Editor only: draws the check capsule.