TextureCubeBuilder WithAnonymous( bool isAnonymous )

robot_2Generated
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 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)
       .WithSize(256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();