Texture3DBuilder WithAnonymous( bool isAnonymous )

book_4_sparkGenerated
code_blocksInput

Description

The WithAnonymous method is a member of the Texture3DBuilder class in the Sandbox namespace. This method allows you to specify whether the texture being built should be anonymous. An anonymous texture does not have a specific name associated with it, which can be useful in scenarios where the texture is used temporarily or does not need to be referenced by name.

Usage

To use the WithAnonymous method, call it on an instance of Texture3DBuilder and pass a boolean value indicating whether the texture should be anonymous. This method returns the Texture3DBuilder instance, allowing for method chaining.

Example

// Example of using WithAnonymous method
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithAnonymous(true);

// Continue building the texture
builder.WithSize(256, 256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();