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.


Topics - 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 / 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]