v3.6.1 Documentation
Fungus.View Class Reference

Defines a camera view point. More...

Inheritance diagram for Fungus.View:

Protected Member Functions

virtual void Update ()
 

Protected Attributes

float viewSize = 0.5f
 
Vector2 primaryAspectRatio = new Vector2(4, 3)
 
Vector2 secondaryAspectRatio = new Vector2(2, 1)
 

Properties

virtual float ViewSize [get, set]
 Orthographic size of the camera view in world units. More...
 
virtual Vector2 PrimaryAspectRatio [get, set]
 Aspect ratio of the primary view rectangle. More...
 
virtual Vector2 SecondaryAspectRatio [get, set]
 Aspect ratio of the secondary view rectangle. More...
 

Detailed Description

Defines a camera view point.

The position and rotation are specified using the game object's transform, so this class only needs to specify the ortographic view size.

Definition at line 13 of file View.cs.

Member Function Documentation

◆ Update()

virtual void Fungus.View.Update ( )
protectedvirtual

Definition at line 24 of file View.cs.

Member Data Documentation

◆ primaryAspectRatio

Vector2 Fungus.View.primaryAspectRatio = new Vector2(4, 3)
protected

Definition at line 19 of file View.cs.

◆ secondaryAspectRatio

Vector2 Fungus.View.secondaryAspectRatio = new Vector2(2, 1)
protected

Definition at line 22 of file View.cs.

◆ viewSize

float Fungus.View.viewSize = 0.5f
protected

Definition at line 16 of file View.cs.

Property Documentation

◆ PrimaryAspectRatio

virtual Vector2 Fungus.View.PrimaryAspectRatio
getset

Aspect ratio of the primary view rectangle.

e.g. a 4:3 aspect ratio = 1.333.

Definition at line 40 of file View.cs.

◆ SecondaryAspectRatio

virtual Vector2 Fungus.View.SecondaryAspectRatio
getset

Aspect ratio of the secondary view rectangle.

e.g. a 2:1 aspect ratio = 2/1 = 2.0.

Definition at line 45 of file View.cs.

◆ ViewSize

virtual float Fungus.View.ViewSize
getset

Orthographic size of the camera view in world units.

Definition at line 35 of file View.cs.


The documentation for this class was generated from the following file: