Skip to content

Add Drag & Drop support to existing Audio Asset #25

@AdamPoncle

Description

@AdamPoncle

Currently when dragging audio in the main library manager view, it will always add a new audio asset and add to that (TEMP).

A nice improvement to the workflow would be to add support for adding the audio entity to a selected asset. I have tested the following logic locally and it seems to work.

LibraryWindowManager.LibraryFactory - Update all lines which call CreateAsset(BroName.TempAssetName) to call the following method instead:

private AudioAssetEditor GetAudioAssetEditor()
{
	if (_currSelectedAssetIndex != -1)
	{
		if (_assetEditorDict.TryGetValue(_allAssetGUIDs[_currSelectedAssetIndex], out var editor))
		{
			if (editor.Asset != null)
			{
				return editor;
			}
		}
	}
	return CreateAsset(BroName.TempAssetName);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions