26 lines
627 B
C#
26 lines
627 B
C#
using System;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x0200026C RID: 620
|
|
internal sealed class GUIAspectSizer : GUILayoutEntry
|
|
{
|
|
// Token: 0x06002A62 RID: 10850 RVA: 0x000369B8 File Offset: 0x00034BB8
|
|
public GUIAspectSizer(float aspect, GUILayoutOption[] options)
|
|
: base(0f, 0f, 0f, 0f, GUIStyle.none)
|
|
{
|
|
this.aspect = aspect;
|
|
this.ApplyOptions(options);
|
|
}
|
|
|
|
// Token: 0x06002A63 RID: 10851 RVA: 0x000369E8 File Offset: 0x00034BE8
|
|
public override void CalcHeight()
|
|
{
|
|
this.minHeight = (this.maxHeight = this.rect.width / this.aspect);
|
|
}
|
|
|
|
// Token: 0x0400078A RID: 1930
|
|
private float aspect;
|
|
}
|
|
}
|