public static GameObject CreateDebugButton(Transform parent, string btnLabel, Vector3 position, Action onClickFunction, bool rotateToCamera = true) { if (LC_Utils.IsBuildForProduction()) { return(LC_Utils.GetDeafultEmptyObject()); // Do nothing } return(LC_GraphicsDebugUtils.CreateDebugButton(parent, btnLabel, position, onClickFunction, rotateToCamera)); }
public static GameObject CreateButtonPanel(Transform parent, Vector3 position) { if (LC_Utils.IsBuildForProduction()) { return(LC_Utils.GetDeafultEmptyObject()); // Do nothing } return(LC_GraphicsDebugUtils.CreateButtonPanel(parent, position)); }
public static GameObject CreateWorldText(Transform parent, string text, Vector3 localPosition, int fontSize, Color color, TextAnchor textAnchor, TextAlignment textAlignment, int sortingOrder) { if (LC_Utils.IsBuildForProduction()) { return(LC_Utils.GetDeafultEmptyObject()); // Do nothing } return(LC_GraphicsDebugUtils.CreateWorldText(parent, text, localPosition, fontSize, color, textAnchor, textAlignment, sortingOrder).gameObject); }
// Creates a Text pop up at the world position public static void TextPopup(string text, Vector3 position) { if (LC_Utils.IsBuildForProduction()) { return; } LC_GraphicsDebugUtils.CreateWorldTextPopup(text, position); }
// World text pop up at mouse position public static void WorldTextPopupMouse(string text) { if (LC_Utils.IsBuildForProduction()) { return; } LC_GraphicsDebugUtils.CreateWorldTextPopup(text, Utils.LC_Utils.GetMouseWorldPosition()); }
public static GameObject CreateWorldText(string text, Transform parent = null, Vector3 localPosition = default(Vector3), int fontSize = 40, Color?color = null, TextAnchor textAnchor = TextAnchor.UpperLeft, TextAlignment textAlignment = TextAlignment.Left, int sortingOrder = LC_Utils.sortingOrderDefault) { if (LC_Utils.IsBuildForProduction()) { return(LC_Utils.GetDeafultEmptyObject()); // Do nothing } if (color == null) { color = Color.white; } return(LC_GraphicsDebugUtils.CreateWorldText(parent, text, localPosition, fontSize, color, textAnchor, textAlignment, sortingOrder).gameObject); }
// Text Updater in UI public static FunctionUpdater TextUpdaterUI(Func <string> GetTextFunc, Vector2 position) { return(LC_GraphicsDebugUtils.CreateUITextUpdater(GetTextFunc, position)); }
// Text Updater in World, (parent == null) = world position public static /*FunctionUpdater*/ void TextUpdater(Func <string> GetTextFunc, Vector3 localPosition, Transform parent = null) { /*return */ LC_GraphicsDebugUtils.CreateWorldTextUpdater(GetTextFunc, localPosition, parent); }
// Create a Text Popup in the World, no parent public static void CreateWorldTextPopup(string text, Vector3 localPosition, Vector3 finalPos) { LC_GraphicsDebugUtils.CreateWorldTextPopup(null, text, localPosition, 40, Color.white, localPosition + finalPos, 1f); }
// Create a Text Popup in the World, no parent public static void CreateWorldTextPopup(string text, Vector3 localPosition, float popupTime) { LC_GraphicsDebugUtils.CreateWorldTextPopup(null, text, localPosition, 40, Color.white, localPosition + new Vector3(0, .5f), popupTime); }