Hello, I have a custom class derived from Tile. By default all Tile assets have previews in project window that show sprites assigned to them. It is not a default behaviour for classes derived from Tile.
I tried to achieve that functionality by overriding the RenderStaticPreview in a custom editor for my class derived from Tile. It seems to render the correct icon, however it works only after I edit an asset properties. When I close and reopen Unity all my assets have default white texture instead of texture returned by overrided RenderStaticPreview method.
Is there any way to force repaint of all my asset icons when editor starts? Or maybe there is a better approach to achieve the same functionality as that implemented for default Tile assets?
UPDATE:
I mean preview in Project window and small icon in the upper part of the Inspector. I marked them on the screenshot below. As you can see some icons in Project window show correct Tile sprites. Those assets were modified after Unity was opened. The others have default white/grey texture, despite having sprites assigned.