Show / Hide Table of Contents

Class ForceAspectRatio

Forces the camera to be a certain aspect ratio

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
ForceAspectRatio
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
[RequireComponent(typeof(Camera))]
[ExecuteAlways]
public class ForceAspectRatio : MonoBehaviour

Methods

| Edit this page View Source

SetOverscanViewport(float)

Declaration
public void SetOverscanViewport(float adjustment)
Parameters
Type Name Description
float adjustment

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾