print('Hello!')
py ファイル名
UnrealEditor-Cmd.exe プロジェクトファイルパス -ExecutePythonScript=Pythonファイルパス
UnrealEditor-Cmd.exe プロジェクトファイルパス -run=pythonscript -script=Pythonファイルパス
import unreal
import unreal
spawn_object = unreal.PointLight()
location = unreal.Vector()
location.x = 0
location.y = 0
location.z = 100
rotation = unreal.Rotator()
spawn_actor = unreal.EditorLevelLibrary.spawn_actor_from_object(spawn_object, location, rotation)
Unreal型を使用しない場合
import unreal
spawn_object = unreal.PointLight()
spawnActor = unreal.EditorLevelLibrary.spawn_actor_from_object(spawn_object, (0, 0, 100), (0, 0, 0))
import unreal
select_actor = unreal.EditorLevelLibrary.get_selected_level_actors()
for actor in select_actor:
light_component = actor.get_editor_property('point_light_component')
intensity = light_component.get_editor_property('intensity')
print('Intensity: %i' % intensity)
light_component.set_editor_property('intensity', 99999.0)