Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Make Opacity required component for Lifespan. #826

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tejaboy
Copy link

@tejaboy tejaboy commented Feb 25, 2024

There was no indication that the lifespan component requires the opacity component. I spent quite sometime debugging it for my own game. It was when I used the fadeIn component, then the error state that the opacity component was required. So I thought it'd be nice that lifespan component gives an error like fadeIn.

When the error does not prevent the script from continuing, I added a shorthand code to set the opacity to 1 if it's not set, else the current opacity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant