Aspect vs Singleton

I’m trying to rotate an object, if I do this inside System and use a singleton to reference rotation speed, it works fine, but when I move the function to Aspect, it cannot rotate (the object just wiggle around).8677731--1169649--false.gif 8677731--1169652--true.gif

You need to post the code.

1 Like

I would review how the built-in TransformAspect works - Transform concepts | Entities | 1.0.16

Aspects are not as straight-forward as other Component models. They can have some caveats. You may be slightly mis-implementing the Aspect, or you may be mis-using the built-in Transform Aspect provided by Unity.

Otherwise, I don’t have any ideas off the top of my head. I would need to see the code for more details.

1 Like