Texture2DBuilder WithName( string name )

robot_2Generated
code_blocksInput

Description

The WithName method is part of the Texture2DBuilder class in the Sandbox namespace. It allows you to specify a name for the texture being built. This can be useful for identifying the texture later in your application, especially when debugging or managing resources.

Usage

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

Example

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