Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - samix

Pages: [1]
1
DOTween & DOTween Pro / DOTweenAnimation - Change Params in runtime
« on: September 08, 2015, 08:11:01 AM »
Hi team,
I have a DOTweenAnimation component in my inspector that I would like to modify in runtime. I can see the change of the param, but I need to click "Commit changes and restart" to have it apply. Is it possible to commit by script?
Thanks
Sam

2
DOTween & DOTween Pro / Re: DOTween.To with classic get and set
« on: June 01, 2015, 06:57:21 PM »
Thanks David!
Is it the only way? I'm used to the classic get and set. Lambdas expressions are great option and keep the code very condensed; but I just think that lambdas expressions are also hard to read; and in some case force to add a OnUpdate callback when a get/set would have done the job.

Thanks again David : )


3
DOTween & DOTween Pro / DOTween.To with classic get and set
« on: May 30, 2015, 03:47:34 AM »
Hi friends,
I'm a bit confuse about the "DOTween.To". I don't understand how to use it with classic get and set:



      float _floatVal = 0f;

      float floatVal {
         get {
               return _floatVal;
            }
            set {
                  _floatVal = value;
            }
      }
   

      public void Start() {
            DOTween.To (floatVal, floatVal, 1f,1f);
      }



it's giving me this error:
The best overloaded method match for `DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter<float>, DG.Tweening.Core.DOSetter<float>, float, float)' has some invalid arguments


Please let me know what you think.
Thanks
Sam

Pages: [1]