Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant