fix(FadeInOut): Added OnValidate

This commit is contained in:
MrGadget1024 2023-03-22 11:05:29 -04:00
parent 26bb7e4e09
commit 377f65a919

View File

@ -18,6 +18,12 @@ public class FadeInOut : MonoBehaviour
float step;
void OnValidate()
{
if (fadeImage == null)
fadeImage = GetComponentInChildren<Image>();
}
void Start()
{
// Convert user-friendly setting value to working value