C# Class RyanNielson.PixelCamera2D.PixelCamera2D

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: RyanNielson/PixelCamera2D Class Usage Examples

Public Methods

Method Description
ScreenToWorldPosition ( Vector3 screenPosition ) : Vector3
SetRenderTexture ( RenderTexture renderTexture ) : void

Private Methods

Method Description
BestFitBehaviour ( ) : void
GetCameraRectOffset ( int size ) : float
GetPixelCameraRenderer ( Camera cameraToIgnore ) : Camera
OnEnable ( ) : void
ScaleBehaviour ( ) : void
Update ( ) : void
UpdateCamera ( ) : void
UpdatePreviousValues ( ) : void

Method Details

ScreenToWorldPosition() public method

public ScreenToWorldPosition ( Vector3 screenPosition ) : Vector3
screenPosition UnityEngine.Vector3
return UnityEngine.Vector3

SetRenderTexture() public method

public SetRenderTexture ( RenderTexture renderTexture ) : void
renderTexture UnityEngine.RenderTexture
return void