TextureCubeBuilder WithName( string name )

robot_2Generated
code_blocksInput

Description

The WithName method of the TextureCubeBuilder class allows you to specify a name for the texture cube being built. This can be useful for identifying the texture in debugging or when managing resources.

Usage

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

Example

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