Api Sandbox Resources TextureGenerator
class

TextureGenerator

public abstract class TextureGenerator : ResourceGenerator<T>

Methods

virtual Texture Create(Options options)

Create a texture. Will replace a placeholder texture, which will turn into the generated texture later, if it's not immediately available.

virtual ValueTask<Texture> CreateAsync(Options options, CancellationToken token)

Create a texture. Will wait until the texture is fully loaded and return when done.

virtual EmbeddedResource? CreateEmbeddedResource()
Assembly: Sandbox.Engine Namespace: Sandbox.Resources Full Name: Sandbox.Resources.TextureGenerator