Пример #1
0
 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));
 }
Пример #2
0
 public static GameObject CreateButtonPanel(Transform parent, Vector3 position)
 {
     if (LC_Utils.IsBuildForProduction())
     {
         return(LC_Utils.GetDeafultEmptyObject()); // Do nothing
     }
     return(LC_GraphicsDebugUtils.CreateButtonPanel(parent, position));
 }
Пример #3
0
 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);
 }
Пример #4
0
        // 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);
        }
Пример #5
0
        // 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());
        }
Пример #6
0
 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);
 }
Пример #7
0
 // Text Updater in UI
 public static FunctionUpdater TextUpdaterUI(Func <string> GetTextFunc, Vector2 position)
 {
     return(LC_GraphicsDebugUtils.CreateUITextUpdater(GetTextFunc, position));
 }
Пример #8
0
 // 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);
 }
Пример #9
0
 // 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);
 }
Пример #10
0
 // 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);
 }