Class QuadAspectFitter
Set the size to match the aspect ratio
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
QuadAspectFitter
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
public abstract class QuadAspectFitter : MonoBehaviour
Properties
AutoRotate
Rotation
Declaration
public bool AutoRotate { get; set; }
Property Value
Type |
---|
System.Boolean |
FixHeight
Height
Declaration
public bool FixHeight { get; set; }
Property Value
Type |
---|
System.Boolean |
ScaleFactor
Scale factor
Declaration
public float ScaleFactor { get; set; }
Property Value
Type |
---|
System.Single |
Methods
OnDisable()
Called when object is disabled
Declaration
protected virtual void OnDisable()
OnEnable()
Called when object is enabled
Declaration
protected virtual void OnEnable()
SetAspect(Int32, Int32)
Set the size to match the aspect ratio of the given parameters
Declaration
protected void SetAspect(int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | height | |
System.Int32 | width |