Tz2/Assets/InputToTMPInput.cs

31 lines
631 B
C#

using System.Collections;
using System.Collections.Generic;
using DefaultNamespace;
using MotionFramework;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class InputToTMPInput : MonoBehaviour
{
/// <summary>
///
/// </summary>
public List<TMP_InputField> TMP_InputFields;
/// <summary>
///
/// </summary>
public List<InputField> inputField;
[ContextMenu("InputToTMPInputMain")]
public void InputToTMPInputMain()
{
for (int i = 0; i < inputField.Count; i++)
{
TMP_InputFields[i].text = inputField[i].text;
}
}
}