EditorResourcePreviewGenerator.generateFromPath

Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call generate. Returning an empty texture is an OK way to fail and let another generator take care. Care must be taken because this function is always called from a thread (not the main thread).

struct EditorResourcePreviewGenerator
@nogc nothrow
generateFromPath
(
in String path
,
in Vector2 size
)

Meta