nagachiang / entity-tween Goto Github PK
View Code? Open in Web Editor NEWEntity compatible tween library for Unity ECS/DOTS and Project Tiny (DOTS Runtime).
License: MIT License
Entity compatible tween library for Unity ECS/DOTS and Project Tiny (DOTS Runtime).
License: MIT License
Thank you sooo much for this beatiful repo :p , entity coming back start point(immediately) after reach end point. I cant figure out why.
Entities.
WithAll<Block>().
ForEach((Entity entity,in Translation translation) => {
float3 start = translation.Value;
float3 end = new float3(20.0f, 20.0f, 0);
float duration = 1.0f;
bool isPingPong = false;
int loopCount = 1;
Tween.Move(ecb,0, entity, start, end, duration);
}).Schedule();
i am a ecs newer, i add the package to 2020.2.1f1c1, then got the errors, i don't know what to do , how to do .
(0,0): error error DC3002: Timespawn.EntityTween.Tweens.TweenDestroySystem`1/DestroyJob: generic jobs cannot have their reflection data auto-registered - you must use the assembly-level RegisterGenericJobType attribute to specify which instantiations you need
(0,0): error error DC3002: Timespawn.EntityTween.Tweens.TweenGenerateSystem`4/GenerateJob: generic jobs cannot have their reflection data auto-registered - you must use the assembly-level RegisterGenericJobType attribute to specify which instantiations you need
(0,0): error error DC3002: Timespawn.EntityTween.Tweens.TweenDestroySystem`1/DestroyJob: generic jobs cannot have their reflection data auto-registered - you must use the assembly-level RegisterGenericJobType attribute to specify which instantiations you need
(0,0): error error DC3002: Timespawn.EntityTween.Tweens.TweenGenerateSystem`4/GenerateJob: generic jobs cannot have their reflection data auto-registered - you must use the assembly-level RegisterGenericJobType attribute to specify which instantiations you need
In its current form, it is not possible to extend Entity Tween as its interfaces are internals. For instance, I'd like to tween a View (Canvas Group), but it is not possible to use the interfaces outside of the scope of the Entity Tween assembly.
I'd recommend making them public so that developers can develop their own tweening systems for things they want to tween.
I just found that each time a new TweenState is created, it generates a unique ID. Is that by design? What if I want the current tween to go away when adding a new one?
For instance, if I start an alpha tween on some Ui but there is already one acting on it, I'd like the new one to override the old.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.