Add FilePathEditor custom editor for path-based editing asset/url refs with a file picker

This commit is contained in:
Wojtek Figat
2024-05-03 12:26:03 +02:00
parent dca8e391fa
commit 754ed56119
5 changed files with 212 additions and 59 deletions

View File

@@ -49,7 +49,7 @@ public:
/// <summary>
/// The video clip Url path used as a source of the media. Can be local file (absolute or relative path), or streamed resource ('http://').
/// </summary>
API_FIELD(Attributes="EditorOrder(10), DefaultValue(\"\"), EditorDisplay(\"Video Player\")")
API_FIELD(Attributes="EditorOrder(10), DefaultValue(\"\"), EditorDisplay(\"Video Player\"), AssetReference(\".mp4\"), CustomEditorAlias(\"FlaxEditor.CustomEditors.Editors.FilePathEditor\")")
String Url;
/// <summary>