create_file_media_source
Create and save a UFileMediaSource asset in Unreal Engine that points to a movie file path and is registered in project content; existing assets stay unchanged.
Instructions
Create a UFileMediaSource asset at package_path/name that points at a movie file path, register it and save it; the file does not need to exist. An existing asset is returned unchanged (file_path is not applied). Returns asset_path, the stored file_path, created and saved.
Returns: { media_source_name, asset_path, created, already_exists, file_path, saved, save_error }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the file media source asset to create. | |
| file_path | Yes | Movie file on disk, absolute or "./"-relative to the project Content folder, e.g. "./Movies/Intro.mp4"; a path inside Content is stored in that relative form. | |
| package_path | No | Target content package path where the asset is created (default /Game/Media) |