ScopedHandle
The closure argument passed to InstanceHandle.On / InstanceHandle.On, used to author overrides scoped to a nested target inside a prefab instance's hierarchy (e.g. the turret's barrel).
public sealed class ScopedHandleCompile-time scaffolding only — SceneBuilder parses the source text to build the scene, so these methods return handles for chaining but perform no work at runtime.
Members
Overridemethod
public ScopedHandle Override(Action<OverrideHandle> configure)Author property overrides on the scoped target's own components, mirroring InstanceHandle.Override.
AddComponentmethod2 overloads
public ScopedHandle AddComponent<T>()Add a component of type T to the scoped target with no field overrides.
public ScopedHandle AddComponent<T>(Action<ComponentHandle<T>> configure)Add a component of type T to the scoped target and set its serialized fields in a closure.
RemoveComponentmethod
public ScopedHandle RemoveComponent<T>()Remove a component of type T from the scoped target (must exist on the source prefab).