-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom properties lost #21
Comments
I'm definitely interested in this. Could you provide an example file with those custom properties? Also, please describe how to read them in Unity. |
Sure no problem, here a link with a blender file, and some screenshots. Blender: Unity: hope this helps! and thanks for the interest! |
Thank you for the file and the screenshots! In your custom script, which Unity API methods are you using to access the custom properties? I'll write a simple script to test they work. |
HI sorry for my delayed answer, is a custom script done by another company :( |
I shouldn't need the entire script, only the Unity API methods and properties being used. Please understand that I need to be able to reproduce the case in Unity in order to fix it. |
Closing this issue, as I have no way to reproduce it in Unity. |
@EdyJ thanks for the plugin 👍. I was struggling with nested empties I can confirm that custom properties are lost during export. Here is one, paste it in a unity asset folder. It simply lists all custom properties found in FBX. using System;
using UnityEditor;
using UnityEngine;
public class FBXCustomPropertiesListing: AssetPostprocessor
{
void OnPostprocessGameObjectWithUserProperties(GameObject go, string[] propNames, System.Object[] values)
{
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]);
}
}
} If you need a complete unity project with files and scripts, I can provide it too. |
From the blender fbx exporter, this is |
Thank you so much for the AssetPostProcessor example! Also, thank you for the pull request. I'll check it out, but most likely I'll just enable |
After asking the request, I felt guilty for not even trying to dive into the source, and I had many excuses, you know, never write python before, that's not my library, not aware of blender plugins, whatever... But at the end, I manage to, and that was pretty satisfying :) |
Hi, i think it wold be amazing if theres an option to export custom properties, they are getting lost in the way.
thanks!!
Cris
The text was updated successfully, but these errors were encountered: