Skip to main content

Class Extensions

Declaration
public static class Extensions

Methods

Unmount(Controller)

Removes the preloaded controller instance, destroying it. Basically calls Stockholm.Instance.Unmount(Controller this);

Declaration
public static void Unmount(this Controller c)
Parameters
TypeName
MatchinghamGames.StockholmCore.Controllerc

Mount<TController>(Transform)

Declaration
public static TController Mount<TController>(this Transform t) where TController : Controller
Returns

<TController>

Parameters
TypeName
Global.Transformt
Type Parameters
  • TController

SetOverlayFillPanel(Image)

The image fills the container recttransform with 0 margins, the color is set to be 1 so that it is invisible to the eye and blocks raycast

Declaration
public static void SetOverlayFillPanel(this Image image)
Parameters
TypeName
Global.Imageimage

FindInChildren(View, string)

Simple function to find a gameobject with a given name among children

Declaration
public static GameObject FindInChildren(this View v, string name)
Returns

Global.GameObject

Parameters
TypeName
MatchinghamGames.StockholmCore.Viewv
System.Stringname