set_actor_spatially_loaded
Toggle an actor's World Partition spatial-loading flag with precondition checks to prevent editor crashes.
Instructions
Toggles an editor-world actor's World Partition spatial-loading flag (AActor::SetIsSpatiallyLoaded). Guarded by AActor::CanChangeIsSpatiallyLoadedFlag() because the setter check()s that precondition (same baked guard as spawn_box_volume) -- so an actor that forbids the change never crashes the editor. Wrapped in FScopedTransaction + Actor->Modify() so the flag change marks the actor's (OFPA) package dirty and survives save_level. applied=false with can_change=false is the honest result for an actor that forbids the change (e.g. a non-partitioned / always-loaded actor); nothing is mutated in that case.
Returns: { actor_name: string, actor_path: string, requested: bool, is_spatially_loaded: bool, applied: bool, can_change: bool, changed: bool, note: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Label or name of the actor in the editor world. | |
| is_spatially_loaded | Yes | bool desired spatial-loading flag. |