# Scale / NonUniformScale is not applied to entity

I'm just learning the new Unity ecs and trying to change the size (scale) of an entity. Everything works fine, I can change the rotation, the position but not the scale.

I'm wondering why. I did various tutorials, I tried Scale, NonUniformScale, LocalToWorld, CompositScale but nothing works. Maybe some of the methods are deprecated.

Here is what I have tried so far.

I have multiple prefabs (planes) which are spawned correctly and each of them having a transform component.

Now I want to change the scaling of all the planes. For that I use a JobComponentSystem. In the following pice of code the rotation works fine, but not the scaling.

I tried LocalToWorld.

public void Execute(ref Rotation rotation, ref LocalToWorld scale) {
scale.Value = float4x4.Scale(2, 4, 5);
}


I tried NonUniformScale

public void Execute(ref Rotation rotation, ref NonUniformScale scale) {
scale.Value = new float3(2, 1, 4);
}


I tried Scale.

public void Execute(ref Rotation rotation, ref Scale scale) {
scale.Value = 5;
}


None of these is working. What did I wrong (the scale just stays at 10,1,10) or what is the current propper way of doing that?

public void Execute(ref Rotation rotation, ref CompositeScale scale) {