The changes are likely not being saved because you aren't calling [EditorUtility.SetDirty][1] on the asset you want to save.
If you want everything saved in the AssetBundle, use the [CollectDependencies][2] and [CompleteAssets][3] [BuildAssetBundleOptions][4]. There is an example [here][5].
[1]: http://unity3d.com/support/documentation/ScriptReference/EditorUtility.SetDirty.html
[2]: http://unity3d.com/support/documentation/ScriptReference/BuildAssetBundleOptions.CollectDependencies.html
[3]: http://unity3d.com/support/documentation/ScriptReference/BuildAssetBundleOptions.CompleteAssets.html
[4]: http://unity3d.com/support/documentation/ScriptReference/BuildAssetBundleOptions.html
[5]: http://unity3d.com/support/documentation/ScriptReference/BuildPipeline.BuildAssetBundle.html
↧