Skip to main content

SphereBlockableCamera

A class in Root.Township, Alta.ScreenshotCamera.

A BlockableCamera that counts as blocked when a sphere around the lens overlaps the block layers.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float radiusRadius of the check sphere.

Methods​

MemberWhat it is
protected override bool UpdateBlockInternal()Checks a sphere of radius at the camera position against the settings' block layer mask.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Editor only: draws the check sphere.