rimworld-animation-studio/Assets/Scripts/GUI/InactiveDuringAnimationPrev...

23 lines
482 B
C#
Raw Normal View History

2022-10-28 05:28:51 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace RimWorldAnimationStudio
{
public class InactiveDuringAnimationPreview : MonoBehaviour
{
private InputField inputfield;
private void Start()
{
inputfield = GetComponent<InputField>();
}
private void Update()
{
2022-10-29 00:52:58 +00:00
inputfield.interactable = Workspace.IsAnimating == false;
2022-10-28 05:28:51 +00:00
}
}
}