Exemple #1
0
        public static void Convert(IExportContainer container, EditorExtension origin, EditorExtension instance)
        {
            ObjectConverter.Convert(container, origin, instance);
#if UNIVERSAL
            if (EditorExtension.HasCorrespondingSourceObject(container.ExportVersion, container.ExportFlags))
            {
                instance.CorrespondingSourceObject = GetCorrespondingSourceObject(container, origin);
                instance.PrefabInstance            = GetPrefabInstance(container, origin);
            }
            else
            {
                instance.ExtensionPtr = origin.ExtensionPtr;
            }
            if (EditorExtension.HasPrefabAsset(container.ExportVersion, container.ExportFlags))
            {
                instance.PrefabAsset = GetPrefabAsset(container, origin);
            }
#endif
        }