We’re making a gardening game and I have a tree model which has 3 different shape keys on to simulate the growth from sapling to a fully grown tree. It also has fruits on, and they have the same shape keys applied; so when the tree gets bigger, the positions of fruits also change and spread out.

However, fruits will change throughout levels, and I thought putting simple spheres as placeholders would be enough to get fruit positions in Unity, so we can add fruits as their child objects. It unfortunately doesn’t work as it is. Placeholder spheres keep their center points when I change the value of shape keys. In Unity, they even act like a sphere in a box mesh.

I only used shape keys for quick and simple stuff till now, so pardon me if it has an easy solution, but I just want to know if there is a way to see the change of object position when shape keys are used.

I don’t know unity, but my understanding of the issue is that with shape key you change the position of the geometry/mesh but the position of the object is still the same.

You might want to investigate another solution , maybe you can do an animation of the sphere changing place during the growth and sample that position to get the right position at a given state.

Animation is one solution I thought of, but our developer already implemented the shape keys and it would be so much easier for them to solve this problem with shape keys as well. If that’s not possible (or too advanced for me) I’ll probably move onto other solutions.

In that case the solution is to find the center using the geometry, not the object transforms.

Instead of the sphere you can use a triangle (to be faster to compute) and then you manage to find the face’s position. While it seems relatively doable in blender, I have no idea about how to do it in unity.