Hi
I want to be able to read custom properties that 3d artist have put on fbx nodes. My purpose is to implement custom behaviour by reading those values. So far I’m able to access them when unity import the .fbx file by using OnPostprocessGameObjectWithUserProperties
void OnPostprocessGameObjectWithUserProperties(
GameObject go,
string[] propNames,
System.Object[] values)
{
Debug.Log(go.name +" -----------------------------------------------");
for (int i = 0; i < propNames.Length; i++)
{
string propName = propNames[i];
System.Object value = (System.Object)values[i];
Debug.Log("Propname: " + propName + " value: " + values[i]);
}
}
But it seems that I have a problem when reading some of the values
properties shown in blender :
properties retrieved with the above code :
As you can see, property “type” has now value “0” instead of “rotation”; and property “axis” is now “2” instead of “X”.
The weird thing is that property “nameAtt” has kept its string value “wheel”, so I really don’t know what to conclude here.
Does anyone have explanations, tips, or solutions to be able to retrieve properly those custom attributes?