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
- 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)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












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