I want to put this resource into the scene through python, and put it in, regardless of the location.
How should scripts be written?
I want to put this resource into the scene through python, and put it in, regardless of the location.
How should scripts be written?
check the api
unreal.EditorLevelLibrary.spawn_actor_from_object
# -*- coding: utf-8 -*-
"""
spawn selected asset to the viewport
"""
import unreal
for asset in unreal.EditorUtilityLibrary.get_selected_assets():
unreal.EditorLevelLibrary.spawn_actor_from_object(asset,unreal.Vector(0.0, 0.0, 0.0))