Texture3DBuilder WithName( string name )

robot_2Generated
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. Naming a texture can be useful for debugging, logging, or when you need to reference the texture by name in your application.

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 the WithName method
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithName("My3DTexture")
       .WithSize(256, 256, 256)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();