Hi,
I am working on an editor tool and I am using EditorGUILayout.ObjectField for picking prefabs. But I don’t want to search my prefab in Select Object window.
Is there any way to change default folder of ObjectField tool from Assets or Scene to Specific Folder (“Assets/Resources/Prefabs/EditorPrefabs”) ?
Thanks in advance,
Sonat K.
As as I learned, ObjectField is set in stone.
What you could do, since you are doing a costom Inspector, is to craft your own asset picker.
Get all assets from your folder, store it in an Array, loop trough it and dispay the asset previews as buttons.
Or you could make it quick and dirty and just put a prefix on every asset that should be selectable and search for that prefix.