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

Alpha tween now affects itself and all its children. #32

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

Conversation

wyleong
Copy link

@wyleong wyleong commented Nov 20, 2014

Hi Russell, it's Leong here. I emailed you sometime ago with a short message thanking you for the LeanTween plugin. I came across something that I needed to fix, and I thought you'd like to add this fix to the master branch. I made it so that the "alpha" method now tweens the alpha for itself and all its children (including nested children), and also fixed the fact that TextMeshes do not have alpha tweening. I didn't fix the "color" method since I didn't need it, but it would've been similar. Hope it helps. Let me know if I did something wrong (e.g. inefficient coding), I'm still learning. :)

@adamhbz
Copy link

adamhbz commented Oct 14, 2015

Hi, I just ran into this issue; tweening a UIButtons alpha via its rectTransform but the UIText child nested within the button does not get tweened.

@wyleong
Copy link
Author

wyleong commented Oct 14, 2015

Hey adamhbz, I'm pretty sure my code is outdated by now. Anyway if you wanna tween unityUI's alpha on Unity, I suggest you just attach a CanvasGroup on the parent GameObject and you can tween the alpha value as a float directly.

@ufukseyithan
Copy link

This issue still persists.

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.

3 participants