TextureCubeBuilder WithAnonymous( bool isAnonymous )

book_4_sparkGenerated
code_blocksInput

Description

The WithAnonymous method is a member of the TextureCubeBuilder class in the Sandbox namespace. This method allows you to specify whether the texture cube being built should be anonymous. An anonymous texture cube 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 TextureCubeBuilder and pass a boolean value indicating whether the texture should be anonymous. This method returns the TextureCubeBuilder instance, allowing for method chaining.

Example

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

// Continue building the texture cube
Texture texture = builder.Finish();