private void RemoveAsset(string name) { AssetDatabase.DeleteAsset(name); FetchResources(); _SelectionList.ResetSelection(); OnRequestRepaint?.Invoke(); }
private void AddElement(AudioAsset asset) { int index = _MappingList.arraySize; _MappingList.InsertArrayElementAtIndex(_MappingList.arraySize); SerializedProperty currentMapping = _MappingList.GetArrayElementAtIndex(index); SerializedProperty audioAssetProperty = currentMapping.FindPropertyRelative("_AudioAsset"); audioAssetProperty.objectReferenceValue = asset; _SerializedTarget.ApplyModifiedProperties(); OnRequestRepaint?.Invoke(); }
private void OnNewElementcreated(AudioAssetLibrary element) { FetchResources(); OnRequestRepaint?.Invoke(); }
private void OnNewElementcreated(AudioAssetLibrary element) { OnRequestRepaint?.Invoke(); }