#TransformUsageFlags.NonUniformScale
1 messages · Page 1 of 1 (latest)
You would normally use PostTransformMatrix and apply scale there from e.g. float4x4.Scale
This code is not working for me
The PostTransformMatrix is applied to my entity but it looks like it has all default values in the matrix as I don't see my numbers anywhere
Evidently baking overrides those values set in the baker with whatever the value would be from the actual Transform component. If you’re baking an object in a scene, all you need to do is use a non-uniform scale in the authoring GameObject’s Transform, which applies a PostTransformMatrix scaling automatically. If you’re baking a prefab, baking normally doesn’t respect scale, so you’ll need to use TransformUsageFlags.NonUniformScale and set PostTransformMatrix after instantiating the entity prefab.