그 보스 페이즈? 노션 보고 잘 만들어주세요
TMP는 깃에서 없애야 하는데 저 할 줄 모르니까 알아서 잘 해보시고 어자피 프로젝트 크기 5메가바이트도 안 넘으니까 굳이굳이 할 필요 없으심 즐 전 자러감ㅋㅋ
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class Benchmark01 : MonoBehaviour
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class Benchmark01_UGUI : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class Benchmark02 : MonoBehaviour
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TextCore.LowLevel;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class Benchmark03 : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class Benchmark04 : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class CameraController : MonoBehaviour
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TMPro;
|
||||
|
||||
public class ChatController : MonoBehaviour {
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
public class ChatController : MonoBehaviour {
|
||||
|
||||
|
||||
public TMP_InputField ChatInputField;
|
||||
public TMP_InputField ChatInputField;
|
||||
|
||||
public TMP_Text ChatDisplayOutput;
|
||||
public TMP_Text ChatDisplayOutput;
|
||||
|
||||
public Scrollbar ChatScrollbar;
|
||||
public Scrollbar ChatScrollbar;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
ChatInputField.onSubmit.AddListener(AddToChatOutput);
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
ChatInputField.onSubmit.RemoveListener(AddToChatOutput);
|
||||
}
|
||||
|
||||
|
||||
void AddToChatOutput(string newText)
|
||||
{
|
||||
// Clear Input Field
|
||||
ChatInputField.text = string.Empty;
|
||||
|
||||
var timeNow = System.DateTime.Now;
|
||||
|
||||
string formattedInput = "[<#FFFF80>" + timeNow.Hour.ToString("d2") + ":" + timeNow.Minute.ToString("d2") + ":" + timeNow.Second.ToString("d2") + "</color>] " + newText;
|
||||
|
||||
if (ChatDisplayOutput != null)
|
||||
void OnEnable()
|
||||
{
|
||||
// No special formatting for first entry
|
||||
// Add line feed before each subsequent entries
|
||||
if (ChatDisplayOutput.text == string.Empty)
|
||||
ChatDisplayOutput.text = formattedInput;
|
||||
else
|
||||
ChatDisplayOutput.text += "\n" + formattedInput;
|
||||
ChatInputField.onSubmit.AddListener(AddToChatOutput);
|
||||
}
|
||||
|
||||
// Keep Chat input field active
|
||||
ChatInputField.ActivateInputField();
|
||||
void OnDisable()
|
||||
{
|
||||
ChatInputField.onSubmit.RemoveListener(AddToChatOutput);
|
||||
}
|
||||
|
||||
|
||||
void AddToChatOutput(string newText)
|
||||
{
|
||||
// Clear Input Field
|
||||
ChatInputField.text = string.Empty;
|
||||
|
||||
var timeNow = System.DateTime.Now;
|
||||
|
||||
string formattedInput = "[<#FFFF80>" + timeNow.Hour.ToString("d2") + ":" + timeNow.Minute.ToString("d2") + ":" + timeNow.Second.ToString("d2") + "</color>] " + newText;
|
||||
|
||||
if (ChatDisplayOutput != null)
|
||||
{
|
||||
// No special formatting for first entry
|
||||
// Add line feed before each subsequent entries
|
||||
if (ChatDisplayOutput.text == string.Empty)
|
||||
ChatDisplayOutput.text = formattedInput;
|
||||
else
|
||||
ChatDisplayOutput.text += "\n" + formattedInput;
|
||||
}
|
||||
|
||||
// Keep Chat input field active
|
||||
ChatInputField.ActivateInputField();
|
||||
|
||||
// Set the scrollbar to the bottom when next text is submitted.
|
||||
ChatScrollbar.value = 0;
|
||||
}
|
||||
|
||||
// Set the scrollbar to the bottom when next text is submitted.
|
||||
ChatScrollbar.value = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class DropdownSample: MonoBehaviour
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
[SerializeField]
|
||||
private TextMeshProUGUI text = null;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Dropdown dropdownWithoutPlaceholder = null;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Dropdown dropdownWithPlaceholder = null;
|
||||
|
||||
public void OnButtonClick()
|
||||
public class DropdownSample: MonoBehaviour
|
||||
{
|
||||
text.text = dropdownWithPlaceholder.value > -1 ? "Selected values:\n" + dropdownWithoutPlaceholder.value + " - " + dropdownWithPlaceholder.value : "Error: Please make a selection";
|
||||
[SerializeField]
|
||||
private TextMeshProUGUI text = null;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Dropdown dropdownWithoutPlaceholder = null;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Dropdown dropdownWithPlaceholder = null;
|
||||
|
||||
public void OnButtonClick()
|
||||
{
|
||||
text.text = dropdownWithPlaceholder.value > -1 ? "Selected values:\n" + dropdownWithoutPlaceholder.value + " - " + dropdownWithPlaceholder.value : "Error: Please make a selection";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,35 +1,38 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class EnvMapAnimator : MonoBehaviour {
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
public class EnvMapAnimator : MonoBehaviour {
|
||||
|
||||
//private Vector3 TranslationSpeeds;
|
||||
public Vector3 RotationSpeeds;
|
||||
private TMP_Text m_textMeshPro;
|
||||
private Material m_material;
|
||||
//private Vector3 TranslationSpeeds;
|
||||
public Vector3 RotationSpeeds;
|
||||
private TMP_Text m_textMeshPro;
|
||||
private Material m_material;
|
||||
|
||||
|
||||
void Awake()
|
||||
{
|
||||
//Debug.Log("Awake() on Script called.");
|
||||
m_textMeshPro = GetComponent<TMP_Text>();
|
||||
m_material = m_textMeshPro.fontSharedMaterial;
|
||||
}
|
||||
|
||||
// Use this for initialization
|
||||
IEnumerator Start ()
|
||||
{
|
||||
Matrix4x4 matrix = new Matrix4x4();
|
||||
|
||||
while (true)
|
||||
void Awake()
|
||||
{
|
||||
//matrix.SetTRS(new Vector3 (Time.time * TranslationSpeeds.x, Time.time * TranslationSpeeds.y, Time.time * TranslationSpeeds.z), Quaternion.Euler(Time.time * RotationSpeeds.x, Time.time * RotationSpeeds.y , Time.time * RotationSpeeds.z), Vector3.one);
|
||||
matrix.SetTRS(Vector3.zero, Quaternion.Euler(Time.time * RotationSpeeds.x, Time.time * RotationSpeeds.y , Time.time * RotationSpeeds.z), Vector3.one);
|
||||
|
||||
m_material.SetMatrix("_EnvMatrix", matrix);
|
||||
|
||||
yield return null;
|
||||
//Debug.Log("Awake() on Script called.");
|
||||
m_textMeshPro = GetComponent<TMP_Text>();
|
||||
m_material = m_textMeshPro.fontSharedMaterial;
|
||||
}
|
||||
}
|
||||
|
||||
// Use this for initialization
|
||||
IEnumerator Start ()
|
||||
{
|
||||
Matrix4x4 matrix = new Matrix4x4();
|
||||
|
||||
while (true)
|
||||
{
|
||||
//matrix.SetTRS(new Vector3 (Time.time * TranslationSpeeds.x, Time.time * TranslationSpeeds.y, Time.time * TranslationSpeeds.z), Quaternion.Euler(Time.time * RotationSpeeds.x, Time.time * RotationSpeeds.y , Time.time * RotationSpeeds.z), Vector3.one);
|
||||
matrix.SetTRS(Vector3.zero, Quaternion.Euler(Time.time * RotationSpeeds.x, Time.time * RotationSpeeds.y , Time.time * RotationSpeeds.z), Vector3.one);
|
||||
|
||||
m_material.SetMatrix("_EnvMatrix", matrix);
|
||||
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class ObjectSpin : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class ShaderPropAnimator : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class SimpleScript : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class SkewTextExample : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using System;
|
||||
using TMPro;
|
||||
|
||||
|
||||
namespace TMPro
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
/// <summary>
|
||||
/// EXample of a Custom Character Input Validator to only allow digits from 0 to 9.
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_ExampleScript_01 : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_FrameRateCounter : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TMPro
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
/// <summary>
|
||||
/// Example of a Custom Character Input Validator to only allow phone number in the (800) 555-1212 format.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
public class TMP_TextEventCheck : MonoBehaviour
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.EventSystems;
|
||||
using System;
|
||||
|
||||
|
||||
namespace TMPro
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_TextEventHandler : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_TextInfoDebugTool : MonoBehaviour
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_TextSelector_A : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
#pragma warning disable 0618 // Disabled warning due to SetVertices being deprecated until new release with SetMesh() is available.
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_TextSelector_B : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler, IPointerUpHandler
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMP_UiFrameRateCounter : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TMPro_InstructionOverlay : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TeleType : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
public class TextConsoleSimulator : MonoBehaviour
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TextMeshProFloatingText : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class TextMeshSpawner : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class VertexColorCycler : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class VertexJitter : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class VertexShakeA : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class VertexShakeB : MonoBehaviour
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using UnityEngine;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class VertexZoom : MonoBehaviour
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TMPro.Examples
|
||||
namespace TextMesh_Pro.Examples___Extras.Scripts
|
||||
{
|
||||
|
||||
public class WarpTextExample : MonoBehaviour
|
||||
|
||||
Reference in New Issue
Block a user