Unity is changing the object names at .dae import

Hi,
I am importing a .dae of a model containing several objects sharing the same name, but are differently located in the hierarchy.
At import, Unity is adding an index at the end of the objects names.

For instance, 4 objects using the same name, such as “Wheel”, will be imported as “Wheel 1”, “Wheel 2”, “Wheel 3” and “Wheel 4”

I need to keep the original names.

Would you know what I can do to make sure the original names are kept?

Thanks

Eric

Quite a few 3D applications have the unfortunate trait of letting you name multiple objects with the same name, but will export them (same with FBX) with numbered suffixes. This is probably because FBX and Collada (dae) export as xml and require unique tags for object names.

Here’s an example from two objects with the same name in an FBX file:

Connect: “OO”, “Model::RightHandSlot”, “Model::Scene”
Connect: “OO”, “Model::RightHandSlot_ncl1_1”, “Model::Scene”

Hi Pix10

Well, actually I am exporting the model from a tool called Anark Core Worstation.
I am using Anark to convert CAD CATIA V5 to .dae.

This does not change anything really. The objects names are correctly exported from Anark to .dae
(opening the .dae in a text editor shows the correct names)
And it seems like Unity is changing the names by adding indexes at import.

Eric

Interesting. The only thing I could suggest is fixing the names at runtime, but workarounds are small comfort and don’t always suite every situation. :confused:

Hi,

Someone pointed to Unity AssetPostprocessor.
It seems adapted to modify the object names once the asset file is imported,
but I d rather avoid having Unity change the names in the first place.

Is there anyway to have control on that, or to avoid it?
Can AssetPostprocessor abe used to over-ride the renaming part of the Unity asset import process?

Thanks
Eric

Well, after some additional research on the subject and on AssetPostProcessor, I did not find a solution to this issue.
Could someone could explain why Unity is changing the names of the objects at import???
AND of course how I can fix this!

This is driving me nuts and it seems such a small issue.

Thanks
Eric