Alpha tween now affects itself and all its children.#32
Open
wyleong wants to merge 1 commit intodentedpixel:masterfrom
Open
Alpha tween now affects itself and all its children.#32wyleong wants to merge 1 commit intodentedpixel:masterfrom
wyleong wants to merge 1 commit intodentedpixel:masterfrom
Conversation
|
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. |
Author
|
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. |
|
This issue still persists. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. :)