2

I am trying to make a toilet paper like object in blender. enter image description here

I have cut a hole in cylinder with boolean modifier. The problem is when I scale this object in Unity the hole gets bigger as we expect. I need to set this object so that I can scale only the outside of the cylinder. Can I restrict which parts should be scaled? Even when this is possible I don't know whether Unity will do the same thing. I'm new in Blender. Thanks for help!

A M
  • 2,157
  • 6
  • 15
meris
  • 23
  • 2
  • 1
    On a second look i'd say it can be a blender question, if edited a bit. Because unity has none such mesh editing functions as needed in this case and blender can function as a preparetion for unity. answer is coming soon :) – A M Oct 14 '20 at 20:54

1 Answers1

3

Unity has only simple transform tools that cant handle this case. Blender can be used to prepare the object for this.

ShapeKeys are the way to go:

  1. Setup your object either totally "full" or "empty"
  2. Create a basis and a key (in Object Data properties)
  3. Select key and edit/scale your mesh with Shift + X to full/empty in Edit Mode.
  4. Export to unity as FBX.
  5. Import BlendShapes should be active by default
  6. In the Skinned Mesh Render > BlendShapes play with your keys

Important: the collider of your base object is static, transformations with BlendShapes have no affect on the collider.

Duarte Farrajota Ramos
  • 59,425
  • 39
  • 130
  • 187
A M
  • 2,157
  • 6
  • 15
  • Thank you so so so much!!!! Finally I have achieved what I want. I was thinking so much how I could get this done but had no idea about these blendshapes. Thanks again! :)) – meris Oct 14 '20 at 23:12