Exemplo n.º 1
0
    // Creates a Text pop up at the world position
    public static void TextPopup(string text, Vector3 position, float height = 2f, float time = 4f, int size = 24, Color?color = null)
    {
        color = color ?? Color.white;
        var target   = Helpers.SetY(position, position.y + height);
        var textMesh = DrawText.CreateWorldTextPopup(text, position, target: target, time: time, fontSize: size, color: color);

        textMesh.transform.parent = GameObject.Find("TextMeshInstances").transform;
    }
Exemplo n.º 2
0
 // World text pop up at mouse position
 public static void TextPopupMouse(string text, float time = 4f)
 {
     DrawText.CreateWorldTextPopup(text, Helpers.MouseWorldPosition(), time: time);
 }