Ignition / CameraHelpers

Namespace Playniax.Ignition

Class or component can be found in Assets/Playniax/Framework/Ignition/Framework/Scripts/CameraHelpers.cs

Class

Description

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.