Skip to content

Commit ef6792d

Browse files
authored
Fixed missing flag in HelloCube
Fixed "NonUniformScale" flag missing from GetEntity call in RotationSpeedAuthoring for the HelloCube tutorial. The example runs without it due to the cube in the example scene being non-uniform and therefore gaining PostTransformMatrix, but will cause hard-to-debug issues for anyone recreating the code in the tutorial.
1 parent f22bb94 commit ef6792d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EntitiesSamples/Assets/HelloCube/Common/RotationSpeedAuthoring.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Baker : Baker<RotationSpeedAuthoring>
1616
public override void Bake(RotationSpeedAuthoring authoring)
1717
{
1818
// The entity will be moved
19-
var entity = GetEntity(TransformUsageFlags.Dynamic);
19+
var entity = GetEntity(TransformUsageFlags.Dynamic | TransformUsageFlags.NonUniformScale);
2020
AddComponent(entity, new RotationSpeed
2121
{
2222
RadiansPerSecond = math.radians(authoring.DegreesPerSecond)

0 commit comments

Comments
 (0)