Hi,
I would prefer not to use the animator to do my in/out transitions. I would much rather use a tweening library inside a coroutine.
What would be the fastest/simplest way to do this?
Im guessing to make a class inherited from the NPCPanel base class then override some methods. Which would be the correct methods to modify?
Thanks,
Alistair
Simplest way to implement DOTween
Re: Simplest way to implement DOTween
Hi,
Make a subclass of StandardUISubtitlePanel that overrides OnVisible() and OnHidden().
In OnVisible(), call base.OnVisible(). When it's done, run your tween.
In OnHidden(), run your tween. When it's done, call base.OnHidden().
Make a subclass of StandardUISubtitlePanel that overrides OnVisible() and OnHidden().
In OnVisible(), call base.OnVisible(). When it's done, run your tween.
In OnHidden(), run your tween. When it's done, call base.OnHidden().
-
- Posts: 15
- Joined: Sun Oct 13, 2019 12:48 am
Re: Simplest way to implement DOTween
Thanks Tony!
Will give it a shot!
Will give it a shot!
-
- Posts: 15
- Joined: Sun Oct 13, 2019 12:48 am
Re: Simplest way to implement DOTween
Just a note: The StandardUISubtitlePanel uses a custom inspector. So new fields are not going to be visible from the get go.
This can be remedied by creating a custom inspector for the custom UI subtitle panel. Just a heads up to anyone else trying to do something like this.
This can be remedied by creating a custom inspector for the custom UI subtitle panel. Just a heads up to anyone else trying to do something like this.
Re: Simplest way to implement DOTween
Thanks! I forgot to mention that.