Class UIElement
Properties
transform
Transform Component of this winS.Unity.Modules.UI.UIElement.
public Transform transform { get; internal set; }
gameObject
GameObject of this winS.Unity.Modules.UI.UIElement.
public GameObject gameObject { get; internal set; }
rectTransform
RectTransform Component of this winS.Unity.Modules.UI.UIElement.
public RectTransform rectTransform { get; internal set; }
Methods
CreateWidgetPool<T>(string sourcePath, int initialNumber, Transform parent)
public WidgetPool<T> CreateWidgetPool<T>(string sourcePath, int initialNumber, Transform parent)
CreateWidgetPool<T>(GameObject source, int initialNumber, Transform parent)
public WidgetPool<T> CreateWidgetPool<T>(GameObject source, int initialNumber, Transform parent)
GetRectTransform(string path)
Get RectTransform in GameObject of this winS.Unity.Modules.UI.UIContainer by path.
protected RectTransform? GetRectTransform(string path)
GetGameObject(string path)
Get GameObject in GameObject of this winS.Unity.Modules.UI.UIContainer by path.
protected GameObject? GetGameObject(string path)
GetComponent<T>()
Get component T.
protected T GetComponent<T>()
GetComponent<T>(string path)
Get component T by path.
protected T GetComponent<T>(string path)
GetTargetLocalPositionInRect(RectTransform rectTransform, RectTransform targetTransform)
Get local position of targetTransform in rectTransform.
public Vector2 GetTargetLocalPositionInRect(RectTransform rectTransform, RectTransform targetTransform)
WorldPositionToRect(Camera camera, RectTransform rectTransform, Vector3 worldPosition)
Convert the worldPosition rendered by the camera to the anchor position in rectTransform.
public Vector2 WorldPositionToRect(Camera camera, RectTransform rectTransform, Vector3 worldPosition)
WorldPositionToRect(Camera camera, Vector3 worldPosition)
Convert the worldPosition rendered by the camera to the anchor position.
public Vector2 WorldPositionToRect(Camera camera, Vector3 worldPosition)
WorldPositionToParent(Camera camera, Vector3 worldPosition)
Convert the worldPosition rendered by the camera to the anchor position in the parent.
public Vector2 WorldPositionToParent(Camera camera, Vector3 worldPosition)
ScreenPointToRect(Vector2 screenPoint, RectTransform rectTransform)
Convert the screenPoint to the anchor position in rectTransform.
public Vector2 ScreenPointToRect(Vector2 screenPoint, RectTransform rectTransform)
ScreenPointToRect(Vector2 screenPoint)
Convert the screenPoint to the anchor position.
public Vector2 ScreenPointToRect(Vector2 screenPoint)
ScreenPointToParent(Vector2 screenPoint)
Convert the screenPoint to the anchor position in parent.
public Vector2 ScreenPointToParent(Vector2 screenPoint)
GetTransform(string path)
Get Transform in GameObject of this winS.Unity.Modules.UI.UIElement by path.
protected Transform? GetTransform(string path)