create_media_player
Create a UMediaPlayer asset with PlayOnOpen and looping flags, optionally linked to a new UMediaTexture, then save both to the chosen package path.
Instructions
Create a UMediaPlayer asset at package_path/name with PlayOnOpen and looping set, optionally with a linked UMediaTexture named "_T" beside it, and save both. An existing player is returned unchanged (flags not applied). Returns asset_path, play_on_open, loop, media_texture_path, saved and texture_saved.
Returns: { media_player_name, asset_path, created, already_exists, play_on_open, loop, texture_created, media_texture_path, saved, texture_saved, save_error, texture_save_error }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Set the player to loop via SetLooping (default false) | |
| name | Yes | Name of the media player asset to create. | |
| package_path | No | Target content package path where the asset is created (default /Game/Media) | |
| play_on_open | No | Set the player's PlayOnOpen flag (default true) | |
| create_output_texture | No | Also create a UMediaTexture "<name>_T" next to the player and link it (default true). |