Skip to main content

HandCameraStreamer

A class in Root.Township, Alta.ScreenshotCamera.

Client: shows the hand camera's live view on a plane through its own camera. HandyCameraManager.StartStreaming spawns one from a prefab on first use.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Renderer planeRenderer whose material shows the streamed texture.
private Camera streamerCameraCamera enabled only while streaming.

Methods​

MemberWhat it is
void StartStreaming(RenderTexture renderTexture)Puts the given render texture on the plane's material and turns the streamer camera on.
void StopStreaming()Clears the plane's texture and turns the streamer camera off.

Used in​

Members of other types that take, return or hold a HandCameraStreamer: