New ECS API : How to use Components ( Non-Blittable Types)

i cant use the Animator Component anymore!
i tried
Entities.ForEach using Animator
IJobForEach using AnimatorReferencer
but still getting errors at compile time.

you were using animators in jobs previously? also the syntax for a component system ForEach is

Entities.With(m_MyEntityQuery).ForEach((Entity entity, Animator animator) =>
{
    animator.applyRootMotion = true;
});
1 Like

Hi Thelebaron,
no i was using the GetComponentArray but it doesn’t axist anymore and i thought that all ToXXXXX (like ToComponentArray ) methodes are just copying data so all modifications will not affect entities but i was wrong. XD

do u have any idea how to use the AnimatorReferencer correctly? it seems to be a proxy to access Animators on Jobs.

No I had no idea AnimatorReferencer existed and still cant find anything about it. Where did you see this first?

i just found it after upgrading to the New version of ECS.

Can’t find it either. In which package does it live on?

Sorry Guys Proxy script is added by a plugin i found on github.
it’s anot part of the ECS Lib.