Skip to main content

ScreenShotExtension

A class in Root.Township, the global namespace.

Controller extension that takes a screenshot when the take screenshot action starts. Client only.

Constructors​

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

Methods​

2 private and internal methods
MemberWhat it is
private void Start()Disables its update and hooks the TakeScreenShot controller action.
private void TakeScreenShot(PlayerInput playerInput)Calls ScreenshotTaker.TakeScreenShot.