Class QuadAspectFitter
アスペクト比に合わせたサイズに設定する
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
回転
Declaration
public bool AutoRotate { get; set; }
Property Value
Type |
---|
System.Boolean |
FixHeight
高さ
Declaration
public bool FixHeight { get; set; }
Property Value
Type |
---|
System.Boolean |
ScaleFactor
倍率
Declaration
public float ScaleFactor { get; set; }
Property Value
Type |
---|
System.Single |
Methods
OnDisable()
オブジェクトが無効になったときに呼び出されます
Declaration
protected virtual void OnDisable()
OnEnable()
オブジェクトが有効になったときに呼び出されます
Declaration
protected virtual void OnEnable()
SetAspect(Int32, Int32)
与えられたパラメータのアスペクト比に合わせたサイズに設定する
Declaration
protected void SetAspect(int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | height | |
System.Int32 | width |
Start()
Declaration
protected virtual void Start()