Class OptionItem.ModOptionAdjust
The base 'adjuster' component to prevent UI elements overlapping
public abstract class OptionItem.ModOptionAdjust : MonoBehaviour
- Inheritance
-
OptionItem.ModOptionAdjust
- Extension Methods
Constructors
ModOptionAdjust()
protected ModOptionAdjust()
Properties
CaptionWidth
The width of the caption for the component
protected float CaptionWidth { get; }
Property Value
isMainMenu
Whether we are in the main menu or in game in the options
protected bool isMainMenu { get; }
Property Value
Methods
Awake()
The function called after this UnityEngine.MonoBehaviour is awakened.
public void Awake()
SetCaptionGameObject(string, float)
Creates and adds a caption to this GameObject
protected void SetCaptionGameObject(string gameObjectPath, float minWidth = 0)
Parameters
SetVec2x(Vector2, float)
Sets the X coordinate of a UnityEngine.Vector2.
protected static Vector2 SetVec2x(Vector2 vec, float val)
Parameters
vecVector2- The UnityEngine.Vector2 to set the value on.
valfloat- The value to set to the x coordinate.
Returns
- Vector2