AssetList Refresh
When using a custom filter on an AssetList that is affected by other parameters in the inspector there should be a way to force the AssetList to refresh to reflect the changes to the filter.
Comments (7)
-
-
- changed status to open
-
There is, but only on when used on lists. There isn't one when it's used on single objects.
-
Is it currently possible to trigger a refresh on an AssetList through code when another property changes?
-
I have made an asset list with single object and its filter method BinaFiltrele checks for inspector values. But when inspector values are changed, there is no way to refresh the list.
[AssetList(AutoPopulate = true,Path="Sehir/Fantastic",CustomFilterMethod = nameof(BinaFiltrele))] [InlineEditor(InlineEditorModes.LargePreview)] public GameObject bina;
-
Anyone who knows the way to refresh Asset List in the code (not with the button that exist on the GUI of it)?
-
Got the same issue. Is there any workaround to force a refresh on the AssetList ?
[SerializeField] DataClassProperty classProperty; [SerializeField, AssetList(CustomFilterMethod = nameof(IsPropertyClassMap))] DataClassMap dataClassMap; bool IsPropertyClassMap(DataClassMap dataClassMap) { return dataClassMap.DataClass.TypeName == classProperty.TypeName; }
When classProperty changes, the Asset List is not refreshed.
Would be great to fix this bug because it makes impossible to use the AssetList in this use case. - Log in to comment
Isn't there already a refresh button on the asset list GUI? Or do you want a way to trigger a refresh automatically when other properties change?