Version 2.1.0.0

GUILayoutOptions.GUILayoutOptionsInstance class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public sealed class GUILayoutOptionsInstance : IEquatable<GUILayoutOptions.GUILayoutOptionsInstance>
A GUILayoutOptions instance with an implicit operator to be converted to a GUILayoutOption[] array.
Inheritance
  • System.Object
  • GUILayoutOptions.GUILayoutOptionsInstance
See Also

Methods

Equals(GUILayoutOptions.GUILayoutOptionsInstance)
Determines whether the instance is equals another instance.
public bool Equals(GUILayoutOptions.GUILayoutOptionsInstance other)
Returns
System.Boolean

ExpandHeight(Boolean)
Option passed to a control to allow or disallow vertical expansion.
public GUILayoutOptions.GUILayoutOptionsInstance ExpandHeight(bool expand = true)
Parameters
System.Boolean expand

ExpandWidth(Boolean)
Option passed to a control to allow or disallow horizontal expansion.
public GUILayoutOptions.GUILayoutOptionsInstance ExpandWidth(bool expand = true)
Parameters
System.Boolean expand

GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
System.Int32

Height(Single)
Option passed to a control to give it an absolute height.
public GUILayoutOptions.GUILayoutOptionsInstance Height(float height)
Parameters
System.Single height

MaxHeight(Single)
Option passed to a control to specify a maximum height.
public GUILayoutOptions.GUILayoutOptionsInstance MaxHeight(float height)
Parameters
System.Single height

MaxWidth(Single)
Option passed to a control to specify a maximum width.
public GUILayoutOptions.GUILayoutOptionsInstance MaxWidth(float width)
Parameters
System.Single width

MinHeight(Single)
Option passed to a control to specify a minimum height.
public GUILayoutOptions.GUILayoutOptionsInstance MinHeight(float height)
Parameters
System.Single height

MinWidth(Single)
Option passed to a control to specify a minimum width.
public GUILayoutOptions.GUILayoutOptionsInstance MinWidth(float width)
Parameters
System.Single width

Width(Single)
Option passed to a control to give it an absolute width.
public GUILayoutOptions.GUILayoutOptionsInstance Width(float width)
Parameters
System.Single width

Operators

Implicit(GUILayoutOptions.GUILayoutOptionsInstance to GUILayoutOption[])
Gets or creates the cached GUILayoutOption array based on the layout options specified.
public static implicit operator GUILayoutOption[](GUILayoutOptions.GUILayoutOptionsInstance options)
Returns
UnityEngine.GUILayoutOption[]

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.