#TransformUsageFlags.NonUniformScale

1 messages · Page 1 of 1 (latest)

indigo sparrow
#

How can I scale an entity on a NonUniform value? For example I want to set only the X axis to 10 while leaving the others at 1.

ionic dragon
indigo sparrow
#

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

ionic dragon
#

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.