Skip to content

Python set_editor_property says a placed BPVerse actor cannot be edited on templates

Section titled “Python set_editor_property says a placed BPVerse actor cannot be edited on templates”
  • Status: current. Project-side workaround verified.
  • Engine: ue6-main 61e2877e, Linux x86_64, Epic clang 23.1.5 (v27 SDK).
  • Context: Standalone UE6, BPVerse actor in project Content, Python editor commandlet.
  • Prerequisites: C++ actor and BPVerse bridge, including the loaded native game module, verse.UObjectBinding=1, PythonScriptPlugin and EditorScriptingUtilities.

Python rejects an instance-only native property on a Verse subclass after spawning it into a level. Coop Zero Step 07 logged this error in Saved/step07-place.log.

LogPython: Error: Exception: CoopStation: Property 'StationKind' for attribute 'station_kind' on 'feeder' cannot be edited on templates

Declare StationKind with UPROPERTY(EditInstanceOnly) on the native ACoopStation subclass of ACoopInteractable. Define and compile the project BPVerse class.

using { /Script/CoopZero }
feeder := class(coop_station) {}

In a saved editor map, run the following in the Python commandlet.

import unreal
cls = unreal.load_class(None, "/Game/_Verse.feeder")
actors = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
feeder = actors.spawn_actor_from_class(cls, unreal.Vector(240, 266, 26), unreal.Rotator())
feeder.set_editor_property("station_kind", unreal.CoopStationKind.FOOD)

The failing project run used this sequence in Scripts/build_slice_map.py with the production feeder class and the Slice map.

Change StationKind to UPROPERTY(EditAnywhere), then rebuild the editor target. Apply the same specifier to inherited properties that the layout needs to assign on other Verse subclasses. In Coop Zero these are SupplyMesh and ApproachRadius. Keep the normal spawn, property write and save path. Reload and check the actor class and property values.

The engine’s Solaris class generator sets CLASS_EditInlineNew for the generated class. PropertyAccessUtil::IsObjectTemplate also returns true for an edit-inline object with an asset in its outer chain. Source inspection points to the saved map as that outer asset in this repro. Python routes set_editor_property through this check. Changing to EditAnywhere makes the intended fields writable under both property access classifications.

  • Evidence level: runs in editor.
  • How: After rebuilding, ran timeout -k 15s 300s UnrealEditor-Cmd CoopZero.uproject -run=PythonScript -Script=Scripts/build_slice_map.py -nullrhi -unattended through the lane wrapper with absolute project paths and local DDC flags. Saved/step07-place-retry.log logged SLICE_REFILL_ACTOR actor=Feeder class=/Game/_Verse.feeder, SLICE_MAP actors=65 map=/Game/Maps/Slice unmanaged=0 and Success - 0 error(s), 1 warning(s). The layout asserts the station kind, fill mesh and supply mesh after save and reload.
  • Date / by: 2026-11-25, Coop Zero Step 07.

This workaround exposes the specified fields on class defaults as well as level instances. The verified case is Python placing BPVerse actors in a saved level. The implementation of the template check was inspected in source. Its exact branch for the spawned object was inferred from that source and the observed denial.