Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 2ba1c94b88
commit ee9aee0a1b
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using UnityEngine;
namespace Febucci.UI.Examples
{
/// <summary>
/// Starts the textAnimator once this object is active
/// Disables it once it's deactivated
/// </summary>
[AddComponentMenu("Febucci/TextAnimator/Utilities/SetTextOnEnable")]
public class SetTextOnEnable : MonoBehaviour
{
public TextAnimatorPlayer tanimPlayer;
string textToSet;
private void Awake()
{
UnityEngine.Assertions.Assert.IsNotNull("TextAnimator: The object 'SetTextOnEnable' has no TextAnimatorPlayer component reference.");
textToSet = tanimPlayer.textAnimator.tmproText.text;
tanimPlayer.ShowText("");
}
private void OnEnable()
{
tanimPlayer.ShowText(textToSet);
}
private void OnDisable()
{
if (tanimPlayer != null)
{
//Forces the text to hide
tanimPlayer.StopShowingText();
tanimPlayer.ShowText("");
}
}
}
}