Files
ImaageQ_Unity_App/Assets/Common/Scripts/FillHelpText.cs
Ignacio Gómez Puga 5847d844a5 Removed TOTU 103
2025-03-04 12:04:52 -06:00

23 lines
647 B
C#

// Copyright 2022-2024 Niantic.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FillHelpText : MonoBehaviour
{
[SerializeField] TextAsset textFile;
[SerializeField] Text uiTextBox;
// Scene info text to text box.
void Start()
{
if(textFile != null)
uiTextBox.text = textFile.text;
}
public void moveToBottom(){
Vector2 pos = gameObject.transform.parent.GetComponent<RectTransform>().anchoredPosition;
gameObject.transform.parent.GetComponent<RectTransform>().anchoredPosition = new Vector2(pos.x,1332);
}
}