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

LeanTween Size New Command #1012

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

breadnone
Copy link
Contributor

@breadnone breadnone commented Jul 5, 2021

Description

No commands to handle RectTransform resizing, this is crucial for UIs

What is the current behavior?

We only have LeanTween/Scale command which intended use case was for non-UI stuffs and would not work properly on any UIs in Unity.

What is the new behavior?

New command to resize UIs based on RectTransform's deltaSize. Basically the opposite of LeanTween/Scale command which utilizes localScale of a Transform

Important Notes

  • My change require modifcations or additions to documentation

Other information

I really wish, all LeanTween commands would have dedicated custom editor, which BaseLeanTweenCommands.cs is lacking. This way it would make new commands based on it would be much tidier.

Edit: I'm against making direct reference to RectTransform, simply bcos we can't get the gameObject that are stored in our local variables

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