Ignition / CameraHelpers

Namespace Playniax.Ignition

Script can be found in Assets/Playniax/Framework/Ignition/Framework/System/Scripts/CameraHelpers.cs

Class

Description

A collection of camera functions.

Public MethodsDescription
static Vector3 GetMousePosition(Camera camera = null)Returns mouse position.
static bool IsVisible(Renderer renderer, Camera camera = null)Returns whether the renderer is visible or not.
static Bounds OrthographicBounds(Camera camera = null)Returns bounds.
static Vector2 OrthographicSize(Camera camera)Returns orthographics width and height.
static Vector2 PerspectiveSize(Camera camera)Returns persepctive width and height.
static Vector2 Size(Camera camera)Returns width and height.
static void SetOrthographicWidth(int virtualWidth, Camera camera = null)Sets virtual width.
static void SetOrthographic(int virtualWidth, int virtualHeight, Camera camera = null)Sets virtual width and height.
static void SetOrthographicHeight(int virtualHeight, Camera camera = null)Sets virtual height.