1
2014
Get Custom Properties from 3dsMax FBX model
Maybe not from the fbx file itself (?), but each object can have custom properties, and Unity can read them on import.
Exporting FBX from 3ds Max with Custom Properties
– Right click on the object
– Select Object Properties

– Type custom properties to “User Defined” tab (it seems to be single string text area, not line by line)
– For example to make it useful, add some delimiter to your data: myvalue|anothervalue|somethingelse|…, then split the string in Unity.

– Export FBX normally for Unity
(no image)
—
Using OnPostprocessGameObjectWithUserProperties() to read those custom properties
– Create new C# script : FBXCustomProperties.cs
– Now select your fbx file from unity project window, right click on it, ReImport
– In the console window you should see your custom properties printed out
using UnityEditor;
using UnityEngine;
using System.Collections;
public class FBXCustomProperties : AssetPostprocessor
{
void OnPostprocessGameObjectWithUserProperties (GameObject go, string[] names, System.Object[] values)
{
for (int i = 0; i < names.Length; i++)
{
string propertyName = names[i];
object propertyValue = values[i];
Debug.Log("Propname: " + propertyName + " value: " +propertyValue);
}
}
}
References:
– Original idea is from this Unity forum topic+video about Maya FBX custom attributes
Related Posts
1 Comment + Add Comment
Leave a comment
Recent posts
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












compress mesh on import:
http://forum.unity3d.com/threads/mesh-compression-what-does-it-actually-do.33073/#post-1692866