Texture3DBuilder WithName( string name )

book_4_sparkGenerated
code_blocksInput

Description

The WithName method is part of the Texture3DBuilder class in the Sandbox namespace. This method allows you to specify a name for the 3D texture being built. It is useful for identifying the texture within the application or for debugging purposes.

Usage

To use the WithName method, call it on an instance of Texture3DBuilder and pass a string representing the desired name of the texture. This method returns the same Texture3DBuilder instance, allowing for method chaining.

Example

// Example of using WithName method
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithName("My3DTexture")
       .WithSize(256, 256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();