My task is to export certain files as asset bundle. There are different types of files in my directory.
I get these selected files using Selection.GetFiltered. File types includes: prefabs, materials and post processing profiles.
But I am getting nothing if I select Post Processing Profiles specifically.
I am doing this:
Object[] selectedObjects = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
Every time selectedObjects.Length is **0**.
I remember it worked before, and now it is not working. Though, for materials and prefabs it's working fine.
Any idea what I am doing wrong?
Instead of typeof(Object) I have tried object, PostProcessingProfile, PostProcessingBehaviour etc. but to no avail.
I have also tried SelectionMode.Assets, and all others.
These files are .asset which is being used to set in Profile property of PostProcessingBehaviour class attached on Camera.
Any help!
↧