PrefabRoot
Root of a prefab definition. Add the prefab's single root GameObject here.
public sealed class PrefabRootThis is compile-time scaffolding so builder files type-check and autocomplete. SceneBuilder reads the source text (via Roslyn) to build the prefab — these methods are never executed. Call Add (or its closure overload) exactly once; a second call produces a located build error, since a prefab has exactly one root.
Members
Addmethod2 overloads
public NodeHandle Add(string name)Add the prefab's root GameObject. Call this once.
public NodeHandle Add(string name, Action<NodeHandle> configure)Add the prefab's root GameObject and configure it (and its children) in a closure.