How do you update the static mesh’s material like you would in the editor? Below is current implementation.
I don’t see in the API docs on where to do this.
import unreal
EAS = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
actor_class = unreal.StaticMeshActor
actor = EAS.spawn_actor_from_class(actor_class, unreal.Vector(), unreal.Rotator())
mesh = unreal.EditorAssetLibrary.load_asset('/Game/Assets/testAsset.fbx')
actor.static_mesh_component.set_static_mesh(mesh)