- Home /
I get ": The private field 'nameofmyvariable' is assigned but its value is never used" thanks to DOTWEEN
I'm using dotween, and the tweeners are just assigned a value like this:
scaleTween = transform.DOScale(endScale, duration);
BUT, it says scaleTween is never used, and I don't need to cause that is the way DOTWEEN works. It doesn't let me work unless I fix this problem, and it used to work before...
Thanks.
Answer by ShadyProductions · Jul 09, 2018 at 04:42 PM
Just use it like this transform.DOScale(endScale, duration);
Not assigning it to a variable which doesn't waste memory.
Your answer
Follow this Question
Related Questions
LeanTween, Problem with slower device when loop create and cancel tween in sequences 0 Answers
DOTween & how to undo SetBlendableScaleBy tweens that get killed 0 Answers
How to start a Dotween in between a sequence? 1 Answer
GameObject to follow another GameObject through a spline with a dynamic end waypoint 0 Answers
loop a chain of iTween actions 0 Answers