Actor¶
Wraps a UE level actor with Pythonic property access and transform manipulation.
Import¶
Spawning Actors¶
light = Actor.spawn('PointLight', name='MyLight', location=(200, 0, 300))
cube = Actor.spawn('StaticMeshActor', name='Cube_01',
location=(0, 0, 50), rotation=(0, 45, 0), scale=(2, 2, 2))
Properties (read-write)¶
| Property | Type | Description |
|---|---|---|
name |
str | Actor label in World Outliner |
location |
tuple | World location (x, y, z) |
rotation |
tuple | World rotation (pitch, yaw, roll) |
scale |
tuple | World scale (x, y, z) |
Set properties with tuples or dicts:
Properties (read-only)¶
| Property | Type | Description |
|---|---|---|
class_name |
str | UE class name |
hidden |
bool | Whether hidden in editor |
Methods¶
set_property(name, value) / get_property(name)¶
Access arbitrary editor properties.
destroy()¶
Remove the actor from the level.