Vixen
02b45cc4
csharp
public sealed class PrefabFileWriter

Writes a prefab back, refusing one that is not a single subtree.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Refused at the save rather than at the build. SceneCompiler will not compile a prefab with two roots, so a save that wrote one would produce a file that opens, looks right, and fails in somebody else's build. It throws rather than dropping a root, because dropping one is losing work.

Fields and properties (1)

  • public string Path

    Where the prefab is written.

Methods (2)

  • public PrefabFileWriter(string path)

    Writes a prefab back, refusing one that is not a single subtree.

  • public void Write(SceneDocument document)

    Writes a scene.

Used by (4)

  • CompiledSceneTestsVixen.Editor.AssetEditors.Tests
  • CompiledSceneViewVixen.Editor.AssetEditors
  • PrefabEditorFactoryVixen.Editor.AssetEditors
  • PrefabWriterTestsVixen.Editor.AssetEditors.Tests