Gets called for each GameObject that had at least one userpropery attached to it in the imported file.
class MyPostprocessor extends AssetPostprocessor { function OnPostprocessGameObjectWithUserProperties ( go : GameObject, propNames : String[], values : System.Object[]){ for (var i : int = 0; i < propNames.Length; i++) { var propName : String = propNames[i]; var value : Object = values[i]; Debug.Log("Propname: " + propName + " value: " +values[i]); if (value.GetType() == String) { var s : String = value; if (s.Contains("addboxcollider")) go.AddComponent(BoxCollider); } if (value.GetType() == Vector4) { var v : Vector4 = value; // do something useful. } if (value.GetType() == Color) { var c : Color = value; // do something useful. } if (value.GetType() == int) { var myInt : int = value; // do something useful. } if (value.GetType() == float) { var myFloat : float = value; // do something useful. } } } }