Requires Unity 4.2.2 or higher - 需要Unity 4.2.2以上的版本
Our asset helps to separate input data from logic and keep it resistant to code changes. If you need to configure your application from structured data or create objects dynamically based on pre-defined values, this would be of great interest to you.
In brief: It allows you to store values in a JSON file and load them in Unity as a part of regular objects. The loading is done at design time, so there's no performance overhead. The data is kept as an asset; it is not a part of a scene, thus any scene can access it. More importantly, values don't get lost after changing underlying code, as it happens with Unity's standard serialisation system. Once you put them in a file, they will stay there until you edit them yourself. Many designers will appreciate this. We know we do.
ConfigAsset can be used with C#, UnityScript (Unity JavaScript), and Boo, but only C# example is provided.