theMickey_
Engaged Member
- Mar 19, 2020
- 2,291
- 3,016
If this...Hi, can anyone help me with a CustomUnityAsset so that it collides with other objects in a scene?
...doesn't work, then the CustomUnityAsset (CUA) might not have collision build in. Here's a workaround (only works for very simple CUAs) and a more general solution for all CUAs:
- for very simple CUAs: add some basic "Shapes" (like a cube, sphere etc.), place them inside your CUA so their surface matches the CUA's surface you want other objects to collide with, and "parent" them with your CUA so they stick in place when you move the CUA. Then enable "Collision" for that shape and make it invisible.
- if that doesn't suffice, or if you have a more complex CUA, you have to edit the actual mesh of the object, meaning:
- you'll need to extract the mesh from the actual *.assetbundle file (or try to find the original, already extracted mesh)
- open the mesh in a tool like Blender to edit it, then add collision to it
- export the mesh again into VAM
// EDIT: Only just realized, I had a wrong screenshot attached. Fixed!
Last edited: