Comments (3)
Hi,
I would prefer not to add those callbacks. The reason is that every callback I add will add 4B to every tween instance, while it's better to keep things as light as possible. In the meantime, consider that...
In place of OnPlayForwardComplete
you can just use OnComplete
In place of OnPlayBackwardsComplete
you can use OnRewind
Instead you would have to manage OnPlayForward/BackwardStart
directly, but since those happen as a consequence of a direct script "order", that shouldn't be a problem.
from dotween.
thanks for your advice, I haven't think through early.
from dotween.
You're welcome :)
from dotween.
Related Issues (20)
- One bug of DOTween's Utility Panel in Unity HOT 1
- Calling ManualUpdate inside of a Callback can lead to IndexOutOfRangeExceptions HOT 2
- transform.DORotate() broken: always moves to Vector3.right HOT 1
- ShakeRandomnessMode HOT 2
- unboxing/boxing of ChangeStartValue and ChangeEndValue
- Why there are no params for TweenCallback HOT 3
- Any chance of a version of DOTween that can run on .NET without Unity?
- Can the owners please make a release as per the version on Unity Asset store HOT 2
- OnKill is called late when calling Kill from tween callback HOT 1
- Managing Dynamic WayPoint Updates in DOPath
- How DOTween.ManualUpdate works?
- Build for Android failed - Error: IL2CPP error for type 'DG.Tweening.Tween' in assembly
- OnComplete problem (again of course) with singleton classes
- How to make OnUpdate and ChangeEndValue work properly?
- Index out of range error
- Startup errors not giving detailed warnings when default logging enabled
- DOComplete -> TweenManager.FilteredOperation: IndexOutOfRangeException (Possibly related to SetTweensCapacity?)
- [Feature Request] Assembly Definition & Version Define Resource HOT 1
- The DOTweenPath won't rotate or move with the parent
- WaitForCompletion stuck on recycled tween
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotween.