Struct PerformanceKit.Resolution
Namespace: Pley
Assembly: Pley.dll
Constructors
Declaration
public Resolution(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
Declaration
public Resolution(UnityEngine.Resolution other)
Parameters
Type |
Name |
Description |
UnityEngine.Resolution |
other |
|
Fields
Declaration
public readonly int height
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public readonly int width
Field Value
Type |
Description |
System.Int32 |
|
Properties
Returns aspect ratio of the resolution, Width / Height.
Declaration
public readonly float AspectRatio { get; }
Property Value
Type |
Description |
System.Single |
|
Returns whether width is larger than height.
Declaration
public readonly bool IsLandscape { get; }
Property Value
Type |
Description |
System.Boolean |
|
Return whether height is larger than width.
Declaration
public readonly bool IsPortrait { get; }
Property Value
Type |
Description |
System.Boolean |
|
Returns a new resolution with height and width set to 0
Declaration
public static readonly PerformanceKit.Resolution Zero { get; }
Property Value
Methods
Declaration
public bool Equals(PerformanceKit.Resolution other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Declaration
public static bool operator ==(PerformanceKit.Resolution lhs, PerformanceKit.Resolution rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(PerformanceKit.Resolution lhs, PerformanceKit.Resolution rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|