////////////////////////////////////////////////////////////////////////// public void OnBeforeSerialize() { #if UNITY_EDITOR if (gameObject == null) { return; } m_ResourcePath = SerializationManager.AssetPathToResourcePath(PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot(gameObject)); #endif }
public void Read() { var res = SerializationManager.AssetPathToResourcePath(UnityEditor.AssetDatabase.GetAssetPath(SaveFolder)); LocalizationManager.Read(res, true); }