Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WithOnComplete,WithOnCancel,WithOnLoopComplete,WithCancelOnError also requires a GC free paradigm similar to Bind #193

Open
eefan000 opened this issue Jan 7, 2025 · 2 comments

Comments

@eefan000
Copy link

eefan000 commented Jan 7, 2025

No description provided.

@Akeit0
Copy link
Contributor

Akeit0 commented Jan 11, 2025

Adding a state to each action would increase the size of ManagedMotionData too much.

https://github.com/AnnulusGames/LitMotion/blob/main/src/LitMotion/Assets/LitMotion/Runtime/Internal/ManagedMotionData.cs
LinkedList is an effective way around this.
#66
(However, I was personally told by the author that he was not inclined to do so because of the complexity of LinkedList.)

@eefan000
Copy link
Author

It is worth considering sharing a State.
In most cases, the State used by multiple actions is likely to be the same. Even if it is different, a temporary type can be used to wrap it into a single State.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants