s&box docs
API ReferenceSandbox.Resources

public abstract class Sandbox.Resources.TextureGenerator : Sandbox.Resources.ResourceGenerator<T>

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 4 methods

public virtual sealed Sandbox.Texture Create(Sandbox.Resources.ResourceGenerator.Options options)

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

public virtual sealed System.Threading.Tasks.ValueTask`1<Sandbox.Texture> CreateAsync(Sandbox.Resources.ResourceGenerator.Options options, System.Threading.CancellationToken token)

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

public virtual System.Nullable`1<Sandbox.Resources.EmbeddedResource> CreateEmbeddedResource()

protected virtual System.Threading.Tasks.ValueTask`1<Sandbox.Texture> CreateTexture(Sandbox.Resources.ResourceGenerator.Options options, System.Threading.CancellationToken ct)

Find an existing texture for this

Metadata

FieldValue
NamespaceSandbox.Resources
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Resources.TextureGenerator

On this page