Unity-Technologies / EntityComponentSystemSamples

Other
7.21k stars 1.61k forks source link

Fixed missing flag in HelloCube #270

Closed ITR13 closed 1 year ago

ITR13 commented 1 year ago

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.

BrianWill-Unity commented 1 year ago

If you modify the transform in the editor, baking should add PostTransformMatrix, but I suppose it can be a problem if you set scale at runtime.