Exemplo n.º 1
0
        public override void Write(AssetWriter writer)
        {
            base.Write(writer);

#if UNIVERSAL
            if (HasCorrespondingSourceObject(writer.Flags))
            {
                CorrespondingSourceObject.Write(writer);
                PrefabInstance.Write(writer);
            }
            if (HasPrefabAsset(writer.Version, writer.Flags))
            {
                PrefabAsset.Write(writer);
            }
#endif
        }
        public override void Write(AssetWriter writer)
        {
            base.Write(writer);

#if UNIVERSAL
            EditorExtensionLayout layout = writer.Layout.EditorExtension;
            if (layout.HasExtensionPtr)
            {
                ExtensionPtr.Write(writer);
            }
            if (layout.HasCorrespondingSourceObject)
            {
                CorrespondingSourceObject.Write(writer);
                PrefabInstance.Write(writer);
            }
            if (layout.HasPrefabAsset)
            {
                PrefabAsset.Write(writer);
            }
#endif
        }