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
Type | Name |
---|---|
MatchinghamGames.StockholmCore.Controller | c |
Mount<TController>(Transform)
Declaration
public static TController Mount<TController>(this Transform t) where TController : Controller
Returns
<TController>
Parameters
Type | Name |
---|---|
Global.Transform | t |
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
Type | Name |
---|---|
Global.Image | image |
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
Type | Name |
---|---|
MatchinghamGames.StockholmCore.View | v |
System.String | name |